Does the word "hold" have the same definition in the next two sentences?

Hold these truths to be self-evident.

About a dozen animals were held inside the stockade.
different meanings