Am I protected?

Was on birth control for months, going off it each month for a week for period. 
But one of the weeks I went of it instead if going back on it after 7 days I waited 12 days because of my headaches. So I stated back on them after being off them 12 days, was into my third day back on the pill and me and my partner had unprotected sex am I protected or not??? 
Any suggestions appreciated