It is not possible to avoid pregnancy by changing your diet. The only reliable way to avoid pregnancy is to use a form of birth control, such as condoms, the pill, or a long-acting reversible contraceptive (LARC) method. If you are sexually active and do not want to become pregnant, it is important to discuss your options with a healthcare provider and choose a method of birth control that is right for you.