Strictly speaking, the answer is no. The GUI -> Galaxy conversion is one-way. For example, comments will not appear in the Galaxy code and therefore can not be restored. Same goes for presets, macros etc.
However, a majority of the code could in theory be recovered. There is no such tool though, so you are probably better of reading and understanding Galaxy itself.