No โ he painted it from memory during the day
Patients at the Saint-Remy asylum were not free to work alone at night. Van Gogh studied the night sky carefully, then painted The Starry Night by day inside his studio room, reconstructing the scene from memory rather than copying it live.