Locally, yes. Solar (and wind) energy isn’t uniform in timing or location, so when there’s too much of it relative to consumption, there needs to be a profitable way to use it rather than just dumping it into resistive heating or letting the panels wear out faster at open circuit. Desalination is a pretty good idea since places with high solar resources also tend to be poorer in water resources. The challenge is the capital costs of desalination plants and competition with existing water sources - water rights are a giant ratfuck by themselves. I think it’ll make sense to build desalination plants that can absorb excess energy generation, but if there’s even political will for it, they’ll take a lot of time to build up
Welcome!