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

Snap your fingers.

When her baby died, she snapped.
different meanings