It is considered a partial solution. There are large solar thermal power plants that can store heat in the form of molten salt, and then later using that heat to flash water to steam to spin a turbine.
However, this is, in most scenarios today, more expensive than simply spinning up a combustion turbine to provide power well after sunset.