Eggs do run the risk of carrying food-borne illnesses like Salmonella. Cooking the eggs all the way through is the only way to ensure it is eliminated. It is recommended that young children, pregnant women, and those with compromised immune systems should avoid soft yolk eggs.