If you are pregnant, an infection can be more than just a problem for you. Some infections can be dangerous to your baby.