When I haven't exercised in a while and I tear all my muscles and it hurts, it's a good hurt. Or like when a mosquito bites me and I give that little lump all hell like rub the skin off, burn it with a lighter, rub more skin off and douse in vinegar. That's a good hurt too.
"And I know that this will hurt you more than it hurts me..." https://www.youtube.com/watch?v=KwGdB4Gj7Js
oddly yes, but they were talking about their erotic kinks. something about sadist being a masochists best friend, you know, all that whips and chains and great danes stuff.
Well there is that famous song with the lyric, "make it hurt so good". I think sometimes a person being hurt can cause one to learn a lesson. An example of this is a very young person touching a hot stove, being hurt by doing so, and then learning not to do so again.