Breastfeeding and emotions

Hey everyone so I'm Hispanic and I've been told countless times that if I'm mad, crying, stressed, etc. That im suppose to pump out the milk and throw it away because those emotions can affect the baby... however I dont want to throw it out.. doesnt anyone know if emotions can truly affect a baby? Thanks!!