Plan b

My boyfriend and I had sex early Saturday morning (shortly after midnight) we didn't use protection and he came twice but neither times were inside me. I took plan b today but after looking at my fertile window I noticed that the day before we had sex I was ovulating. Could there still be a chance that I'm pregnant or did I take the plan b on time!? I'm kind of freaking out..