In those parts of the globe where it makes sense to use solar, and during the day, yes.
For everything else, you need a way to store the energy that can be measured in weeks, not hours. You also need to transport it. And you need to stabilize the energy output not to be entirely dependent on whether the sun shines. That's why hydrogen might be a good energy reservoir.