Switching bc

I’m on the pill right now and I don’t like the one I’m taking. I’m going to ask my doctor if I can switch to a different brand. Will I be protected immediately after stopping my brand and starting the new pill the next day if I don’t miss a day on a new brand?