How effective is the Pill?

I’ve been on the Pill for about 2 months and I had unprotected sex a few days ago he didn’t cum inside me but I’m worried about Pre cum? How likely is it that my pill will work?