Late period

I switched the pill for the shot a month ago. I had unprotected sex almost three weeks ago and I’ve been spotting light brown/ pink. My period is never late but now it’s 11 days late. Should i take a pregnancy test ??