Is there any prevention from period pain? (menstruation)

Often -yes. Avoid caffeine, chocolate, alcohol & salt. Get GYN eval to R/O underlying pathology. Consider omega- 3 fatty acids, magnesium (supplementation or through diet) or Black Cohosh with dr ok.
Yes. I bet that you have pms and probably crave sugar, chocolate or salt pm. If this applies, get rid of it. A multivitamin might help.