Could I get pregnant?

If my and my bf had unprotected sex (but did not cum inside me) like 4 days before I accidentally took my pill abt 7 hours late is there a possibility that that window of time could get me pregnant?