Am I still protected?

Im on the birth control pill and was wondering if you’re still protected right after you finish the last day of the pink pills? Or do I have to wait a week to be protected again?