yes and no
yes u can do it with the correct gear to controll the power going to them
no u can not just tie it directly in u need to have a controller unit to keep the powers lvls from spiking or dropping
oh u could buy a gen with the controller already built in (they say they are desigend with work with electronics ) those gens are safe to use just plugging in but the ones that are cheap work site ones no u need the controller