How quick does it work?

i started the pill and am 2 days away from finishing the first month and just had unprotected sex and he finished inside me. Am i ok or should I take plan B to be safe? My doctor said wait a month or two for the pack to work and I jumped the gun and want to be safe. Thanks!