I mean yes, but what’s genuinely problematic is the variability of the sun. Since it doesn’t shine at night, you have to store the energy generated during the day somehow. What about winter, especially in parts of the world where it lasts a very long time? How can we transfer the energy generated in, say, the Sahara desert, to Svalbard? Solar is great for generating electricity, but storage and transport of said energy is not complety resolved, yet.
For most parts of the world, the only reason why the problem with the variability isn’t solved yet, is because governments don’t want to invest in the electricity grid. We have the storage technologies, the only thing missing is money. And it’s unrealistic to say that energy needs to be trabsported from the Sahara to nordic countries. Finland already needs to cut its nuclear reactors, because the renewables in Finland produce so much energy. Only the furthest regions north can’t use solar.