ovulation pain HELP

I take de pill and I didn't miss no one, but at the 12 day of my cycle I felt a pain like the ovulation pain at the right ovary, so I am afraid that a ovulated. I had a bit of diaherra, maybe it was stomachache, but the pain was different. I had sex without a condom, he pulled out. Should I get the plan B?