Yes, but only the ones which operate under at least the 5% THD (Total Harmonic Distortion) threshold. Inverter generators are usually perfectly safe. On the other hand, the conventional open frame "contractor style" portable generators are not safe to use with sensitive electronics. In such case you need to get a line conditioner to prevent damage to them.