The study on this was carried out by researchers from the not-at-all-evil-sounding Monell Chemical Senses Center in Philadelphia, who had pregnant women drink a bunch of carrot juice while pregnant and then while breastfeeding (with various groups changing up when they drank it). The results? The kids whose mothers were given the carrot juice, regardless of the stage when they were given it, were less grossed out when fed a carrot-flavored cereal one month later.
And in fact, the kids whose mothers had carrot juice during both stages (during pregnancy and during breastfeeding) reportedly couldn't get enough of the stuff. And this is freaking carrot juice we're talking about here.
It makes sense in a way, considering the food your mom ate flavored both her breast milk and the amniotic fluid that surrounded you in the womb. Still, you'd think the residual carrot flavor would be imperceptible, having filtered through her body in the course of metabolizing it. You might like the taste of pork gravy but you wouldn't want to go lick the sweat off of a guy just because he eats it every day.