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

Education is the door to success.

I knocked on the vice president's door.
different meanings