Yes, it means that they'll probably yell at and punish the speaker. I want to note, though, that the term has a vulgar connotation, don't use it in polite company.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.