starting birth control

if I start birth control 5 days after having unprotected sex will it completely eliminate any chance of becoming pregnant?