Should you have sex when on your menstrual

Jessica
Somebody told me once if you have very bad cramps when your on your period you should have sex is this true?