Theorectically you could but you shouldn't. All load/save/validateSettings methods as well as configure in NodeModel are supposed to execute (very) fast. In the NodeDialog it's a different story, there you can execute some longer-running operations. However, as long as the method doesn't return the dialog won't be shown. It's better to do it asynchrously and update the GUI after you have the result.