Sex helps with cramps?

Is it true that having sex on your period helps with cramps??