Help!

It’s 8-9 days before my expected period! I’ve been having unusual spotting/discharge like I have never had before for a few days. I’m on the pill. (I have been for 2 years). Would a pregnancy be accurate to take now?