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

Open the door a crack.

There was a crack in the mirror.
different meanings