Absolutely, we need to look to Israel, also a country within a desert: https://www.scientificamerican.com/article/israel-proves-the...
Israel desalinates more water than it uses and is a net exporter of water in the region, selling fresh water to other countries.