While solar generators cannot be charged during the night since they derive their energy from sunlight, you can use the energy already stored in the generator even after sundown. So, in short, yes, solar generators do work at night.