I suppose that as long as your automatic transfer switch is routing your power:
I plug in my EMS to the pedestal after I shut of it's breakers. I then flip them on, and plug into power.
But I don't tend to run the generator; if I've got shore power at the ready...
But I don't think that there's anything wrong with what you're doibg either!