Sure it can hurt for a moment. Hell, it was learning to relax into nikkyo and accept the pain that taught me to deal effectively with pain IRL way better than before. But if you actually relax....it stops hurting.

It is not until you relax into and learn to follow the pain that you can find a way out of it. Ditto other waza.