Birth control pill

If I started taking my birth control pills the day before my period started, would I be protected immediately? Or would I still have to wait 7 days before I am