Yes, it is safe to use a generator for a space heater as long as you follow safety guidelines. The generator should never be inside the house or near a window because they produce carbon monoxide.