Spotting/Pregnancy

I had unprotected sex the day after I ended my period. Now 2 weeks have passed since and now I had brown discharge for a day. This has never happened to me with my period so I don't think its that. Can this mean I am pregnant? Should I take an early test?