Will drinking soda prevent you from becoming pregnant?

No, it should not. It is not exactly the healthiest habit to have before getting pregnant though. It won't keep you from getting pregnant nor will many other foods/beverages.