HELP!!

So I’m 7 days late on my period!! I had some spotting yesterday but I’m concerned. I am UNDERWEIGHT, I have a hard time keeping weight on. Could the weight loss be affecting my period or should I take a test?