Is hold used to mean the same thing in the next two sentences?

Hold your tongue.

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