I had unprotected sex while I was bleeding

On my inactive pills multiple times and then after I stopped bleeding too. But then, after sex, I waited a few days after I ran out to start my pills again. Does this mean I'm not protected even though I had sex while I was bleeding and then only a day after I stopped bleeding?