Yes and no, it depends on your electrical and mechanical setup. Some boat wiring,switches,alternators etc*will not accept power from both 12V and 110V sources at the same time. On faster boats water pickup for gensets can be a problem. Insure your genset high temperature cutoff is working OK. Try it at the dock first to be sure all your electrics are OK. Underway, only experience and careful temperature monitoring *can tell you. Many larger yachts run gensets all the time, many smaller yachts have a cruise generator driven from the engine to supply110V.