Could masturbation help relieve period cramps

I very very strong cramps and I was thinking if masturbating could help?