Is Plan B effective 4 days before ovulation?

I had unprotected sex 4 days before my ovulation date. I took plan b the next day. Is Plan B still as effective? Could I get pregnant?