Brownish discharge

So yesterday I had some light brown discharge. It wasn’t very much, but today I have some more. My period is due in a week. My boyfriend and I have had unprotected sex, but I am also on birth control. Should I take a test?