BIRTH CONTROL HELP

How long does it take for birth control to take effect and is it 100% risk free ? I'm planning to have sex on Sunday