Is plan B right for me?

So I had unprotected sex a few hours ago and I'm not sure if he pulled out in time, I want to go get plan b just in case but I'm in my fertial window, will it help?