Cramps

I heard that having sex while on your period can help with cramps? Is that true?