It's generally not recommended to leave a desk lamp on overnight, as it can waste energy.
If you need a light source for overnight use, consider using a night light or low-wattage lamp instead.