Will Food poisoning hurt my unborn baby ?

Lisa-Marie

So i’ve heard from a mother recently that having food poisoning will not hurt an unborn baby. My question is why do pregnant woman have to watch what they eat to avoid food poisoning. I know it sucks to be sick but I thought it was it could harm the baby.