Brown flaky discharge

I had weird brown discharge that looked like flaky and chunky on the first day of my period and then nothing, now I’m having horrible cramps but still no blood. Should I take a pregnancy test?