It certainly can help. In fact, there are specific products formulated for this specific use. Take a look at this article for example:
https://www.hellomd.dev/health-wellness/menstrual-cramps-be-damned-with-new-cannabis-vaginal-suppository
For more on Foria:
https://www.hellomd.dev/brands/5760c7d0e4599e00070000d7/foria
mark