Yes! In fact, that is how people have been producing salt for thousands of years.
As you can see in the animation, if salt water gets exposed to heat, the water evaporates and we are left with salt.

It is important to remember that in mixtures, different materials just exist together. They still have their individual properties. Because water and salt have different boiling points, we can use this difference in properties to separate the mixture.