late period?

A couple weeks ago i had brown/red discharge for a couple of days and that's when i know i'm starting my period. But when the week went on the discharge stopped and i didn't have my period (i did have sex the week before the discharging was happening). Should i still take a pregnancy test even though my next period is coming up soon?