Is diarrhea an early sign?

I’ve been waking up in the middle of the night with diarrhea and cramping for the past week. I have seven days until my expected period. Has anyone else experienced this before