Is this common?

Elena • 20..saved by Gods mercy.
So my boyfriend broke up with me 2 days ago and like 24 hours later I started my period. I wasn't supposed to start for at least 4 more days. I am so heartbroken, I truly loved him and next to my mom passing away 6 months ago this is the most painful thing I've ever gone through. Can going through something like this kinda mess up your monthly cycle?