Period cramps and sex

So I'm cramping like crazy and I'm wondering if having an orgasm and or sex will help my cramps? I've tried masturbating once before but then my stomac just hurts... Does anyone else have this?