Protected if you have your period halfway through you pull packet

Just wondering if I made my period come half way through my pill packet, would I still be protected during sex whilst I am having my period and straight away after or do I have to wait 7 days?