what’s going on?

So yesterday was the day I was supposed to start my period, the whole day I was just spotting and getting the brown discharge you would get at the end of your period and finally i started to bleed, now today i’m not bleeding at all. i’m on birth control and the last time I had intercourse was may 6th. could the birth control be the reason for this?