yes that will safely restart a server for you without having to go to the console to reboot it.
But it depends on why you have been asked to restart it as to whether its a good thing to do. If for instance you have a long rollback in operation, the database involved will just have to go through a long recovery stage on restart.
---------------------------------------------------------------------