Bc Questions

My last period ended on a Tuesday. I took my next bc pill that following Sunday. The 5 days that I wasn’t taking a pill, was I still protected?