Theoretically, yes. In practice it is more profitable to store that energy and then release it back into the grid at night.