If I have mastoiditis or other infections will it affect my pregnancy?

Only if not treated. Infections in pregnancy need to be treated so that they don't spread. Your doctor will know what antibiotics are safe to take. It is important to take care of mom to protect baby.