Plan B

On March 8th I had unprotected sex a day before I ovulated (according to the app) he did ejaculate inside of me. I took a Plan B about 30 minutes after is it possible the Plan B didn’t work? On the 4th sex was protected.