Does the amount of rainfall relate to temperatures of a place? Is the amount of rainfall related to the maximum mean temperature of a place?
Yes, with exceptions
Rainfall is related to temperature. However temperature is not the only thing that dictates rainfull.
In general, the more hot a place is, the more water evaporates and the more rainfall is able to be produced.
For example, the equator has a belt of rain-forests precisely because it receives the highest amount of heat from the sun and thus high amounts of rain-fall.
However, not all hot places make a lot of rain. Deserts occur when there is a lack of rain fall. Yet deserts can occur in cold temperatures (the north pole) and hot temperatures (Sahara desert).
To sum, temperature is certainly related to the amount of rainfall. However, you can't just presume the level of rainfall by temperature as many other factors are invovled.
Assume you mean surface temperature...
I think you should not directly try to correlate temperature and precipitation together.
Both of them are, in general, determined by location, which represents solar radiation level (related to latitude), altitude, distance to nearby water bodies (source of moisture), impacts of atmospheric circulations and ocean currents, and so on.
Thus there should not exist any global correlation between these two factors.
However, in a certain area, they may be related, and I think there may exist another deterministic factor, e.g. distance towards nearby mountains.