Yes, but temperature drops as altitude increases, so there is an indirect effect of altitude.
I read something in a hunting or tramping book years back that stuck in my brain - if I recall correctly, it said temperature drops 6.5 degrees for a 1000m increase in altitude, meaning the temp at the treeline is roughly 8 degrees lower than at sea level, all else being equal.
Bookmarks