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

The French doors admit onto the yard.

A ticket admits one into a playhouse.
different meanings