Plan B

Two days after my period, I had unprotected sex for about 2 minutes, with my boyfriend. We stopped because it hurt me, then he put on a condom, we continued, and then he finished with the condom on. The past few days, I have been worried about getting pregnant from the pre-cum, or if there was anything on his finger while he fingered me. This happened 2 days ago, I took a plan b today. Will the plan b work if I am not planned to ovulate until about a week from today?