Not too fast, it goes both ways:
> In 2016, they showed that mice born to mothers who experience a severe infection during pregnancy are much more likely to show behavioral symptoms such as deficits in sociability, repetitive behaviors, and abnormal communication.