You can’t prevent meconium ileus. CF is an inherited disease. If you're thinking of becoming pregnant, you can get CF carrier screening to know whether you're at risk of having a baby with CF.