Yes. For part of the day no sun will reach the location, so the temperature will depend only on the air temperature and possibly the sea temperature for locations near a large body of water. During the daylight hours, which vary according to the season, the sun's angle changes reaching a maximum around noon. The sun's rays will be passing through the minimum thickness of atmosphere at that time and will be most effective when that thickness is minimal.