Am I safe?

I started using combination pill on the first day of my period 5 days ago. My period lasted 4 days and I had unprotected sex that day. My doctor said that I'm completely protected if I start my pills with the beginning of my period, but I also took plan b the next day after having sex just to be safe. Am I safe from getting pregnant?