Yes In yoga, cat stretching and bridging can relieve dysmenorrhea.
I've experienced it myself. I only practiced yoga for half a month, but it didn't hurt when I had my period. I've always wanted to take some medicine to completely eradicate this bad habit. I didn't expect to be invisible in fitness.