That should be the way it will work. But probably you need to know just how to connect in the J-box on side of the generator box. Do you have the hour meter and start/stop switch already in the control cabinet? If not, will need the wiring run.
And, welcome to the forum.
2016 Tiffin 40 QBH
2015 38RSSA, traded
2005 TK3 #1869, 10 yrs of memories,
2017 F450 KR--one more Ford is it
2009 F450 4x4-died; 2010 F450-retired