Brown spotting in early pregnancy

I found out I was pregnant on Thursday just gone the 22nd March I’m 5 weeks now woken to brown spotting very mild cramps but I’ve had flu and coughing wondering if it’s due to straining when coughing or could I be misscarring I’m worried help?