Some birth defects can be prevented. You can take steps to prevent birth defects by:  Avoiding alcohol, tobacco and drugs. Controlling any ongoing medical conditions. Preventing infections during pregnancy. Taking folic acid.