It's not that simple, and not always true.
Deserts are the hottest places on earth and get little or no rain.
The poles and areas near the poles get tons of precipitation in the form of snow....