Dangers of cum !!

Im wondering if a women is pregnant and a man cums in her is there any way that can affect the baby, can seemen carry infections or anything like that ?