Please help

I just got off my period a week ago, but yesterday I had sex and the next day my period came back on. I want to wait to go to the doctors. Any ideas why this happened? (I took a plan B a week before)