Help 😞

Sa
Lately I've been throwing up. So far it's been 4 days in a row. I thought I had a stomach bug. My last period ended on the 20th of January. We had sex the 16 th and 17th and then again on the 24th. 
I am starting to get a lot of cramping in my lower back  and cramping in the front. I started spotting and my period is weeks away. There is little tissue pieces when I wipe. I ovulated last week. 
I just don't know what to think. It seems too early to know if I am pregnant or having a miscarriage  
I ran out and got a test but isn't it way too early to take a test?  Should I take the test? The cramps and back pain are horrible 😔