It should be safe but not recommended.
If the operation fails for some reason, you wouldn't know the error messages, etc.
There are a couple of recommendations:
1) You can continue working on SQLyog by making a new connection.
2) You can minimize SQLyog and work on other apps
This way you know whether the operation completed successfully or not. I think that is important.
Does that answer your question?