Not familiar with your setup but in most instances the answer is yes. Assuming you have an on board generator factory wired, you may have an automatic transfer switch with the generator as the primary power source. When you start the generator it should switch from shower power to generator power with little to no interruption. There are also manual transfer switches, in which case you would continue running on shore power until you manually switch.
__________________
2015 Work and Play 30WRS
2005 Dodge Ram 2500 4x4 diesel
A little more info needed - what gen set? Factory wired? I know on mine 4k onen - there is also a circuit breaker on the gen and in most generator just flip the breaker off if concerned about burning something up
Get out and Play Harder😛
2016 XLR Hyper Lite 29hsf - loaded picked up 3-24-2015😊
2008 Can Am Spyder
Kite Boarding is my Addiction - GOT WIND!