please help

I've missed my period for 6 days and on the second day of missing it I was spotting. It only lasted for two days. I happen to have unprotected sex two or three weeks before and I was thinking maybe I should get a pregnancy test. Should I still get one? Even though I've been spotting? I'm still in highschool and I don't want to be worrying about this but I was stupid and now Idk if I'm being paranoid or what