Can a Baby Sense Pregnancy

So I have a 5 month old God-Daughter and she’s 5 months 2 moths ago she always threw up when I would pick her up or hold her , however it’s only me she would throw up on and I found out I was pregnant (miscarried) but it stopped for a minute, now she’s doing it again ?