Antibiotic cream mess with pill?

So I was on an antibiotic cream called ketoconazole for 3 weeks. I had unprotected sex on September 4 but he pulled out and didn’t finish inside me. I took my pills regularly and did not miss one. I was wondering if an antibiotic cream could affect birth control.