Is the word "hold" used in the same way in the following two sentences?

To carry well, i.e. to hold the head high, with arching neck.

This theory holds for all irrational numbers.
different meanings