Consumption of sucrose‐sweetened drinks (SSDs) during pregnancy and breastfeeding can lead to various health and metabolism issues, but the potential impact on neurodevelopment and long‐term effects remains unclear. This study aims to examine how maternal consumption of SSDs during gestation and lactation influences anxiety and depression‐related behavior in adult offspring. Adult female CD‐1 mice were randomly assigned to a control group (CG) or a sucrose group (SG) 2 weeks before gestation. The SG had 2 h of access to an SSD (15% w/w, 0.6 kcal/ml) for 2 weeks before mating, during pregnancy, and throughout lactation, totaling 8 weeks. Adult offspring were then evaluated for depressive‐related behaviors and anxiety‐related behaviors. Our findings reveal that perigestational consumption of SSDs does not lead to offspring presenting behaviors related to depression, but it does increase swimming behavior. However, maternal consumption of SSDs could impact the fighting response due to a diminished motivational component. In contrast, perigestational consumption of SSDs has apparent effects on anxiety‐related behavior. Furthermore, female offspring appeared to be particularly vulnerable, exhibiting a higher anxiety index compared with controls. These findings indicate that females could be more vulnerable to the effects of maternal consumption of SSDs, being more susceptible to the presence of anxiety‐related behaviors.