On the contrary I've read that eating nuts during preg help to prevent allergy for the baby. https://goldengateobgyn.org/can-eating-nuts-during-pregnancy-lower-your-childs-risk-of-allergies/#:~:text=The%20study%20found%20that%20pregnant,than%20woman%20who%20did%20not.