Grow lights emit heat, it may not seem much, but a few degrees can make the difference. The fan must remain on when the lights are on. However, you may turn them off when lights are not beaming, considering other climatic conditions like humidity and odor inside the grow room.