Is it safe to have unprotected sex with only two active pills left in the pack

I took my pill around the same time every night. The latest was an hour and 40 minutes bc of daylight savings I forgot. I had a few times where I took it 30-45 minutes late a few night in a row. But for the most part I did it perfect. I had unprotected sex yesterday with two active pills left am I safe