Some atmosphere from the terminator pours over the horizon, and there might be a tiny bit of warmth from sunlight reflected off the lunar surface. However, essentially, the sun does not warm the atmosphere at night. This is why, on average, the atmosphere tends to cool all night long, reaching its coldest point just before sunrise.