is breast feeding really beneficial to babies?

does that also means that mummy should watch their diet too if they breast feed. does what mummy eat affects the nutrients that the baby is taking in?