Yes, absolutely. Look at places like Saudi Arabia and elsewhere in the Middle East that run on desalinization plants. It's energy, all the way down.
So the equation is basically energy input from the sun creates freshwater from salt water and transports it over land. Humans can, and have, replicated this process artificially, the limiting factor just being the cost of energy.