Does word "altitude" have the same meaning in the following two sentences?

As the altitude increases, the temperature gets lower, so remember to bring warm clothes to the mountains.

The altitude gave her a headache.
the same meaning