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

Break a law.

Her voice broke to a whisper when she started to talk about her children.
different meanings