It depends on which desert! Please rewrite the question to ask about a specific desert,
The Ladakh is a high altitude desert in the Himalayas so is quite cold the year round,
The Simpson Desert of Australia is a hot desert.
Hot desert
The Mojave desert does not have much altitude, but if where ever is closest to the sun and out in the open is the hottest.
The Gibson Desert is a hot desert.
A hot desert
The Arabian Desert is a hot desert.
Yes it does. The higher the altitude, the cooler the temperature in general.
The Kalahari is a subtropical hot desert.
The Kalahari is classified as a hot sub tropical desert.
Yes, the Simpson Desert is a hot desert.
The Arabian Desert is a hot desert.