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

Crack a joke.

The performance was fine until he cracked that dead baby joke.
the same meaning