Of course it makes sense. Pain is the universal teacher. It's why every organism that can move under its own power experiences pain. We are extremely good at learning pain avoidance. We even used to hit adults (and far worse) to get them to behave. So yes, of course it makes sense. Whether it results in positive outcomes is the only legitimate question.