Could I get pregnant?

I ran out of my pills before my cycle was over so I had a 4 day break where I bled but once I got my refill I started taking them again i took the pill for 27 days instead of 21 and then took my break and got my period. If I had sex during that break before I got my period would I be pregnant or am I still protected?