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

This sealed door won't allow the water come into the basement.

To allow a servant his liberty.
different meanings