There is no problem but don't use an A/B switch becuse when the power comes back on it will fry your gen. They make a switch that is an auto transfer switch, so when it see's power coming in from the other side it will stop the power from the gen and then just turn off your gen.
good luck.