Interesting to think about.
I don't think the foods I consumed while pregnant have influenced my child's eating habits or preferences. I do think maybe children can inherit a preference for certain types of foods from either parent.
My dd has a sweet tooth much more like her father has where I usually crave saltier foods. I craved and ate vegetables a lot during pregnancy and she is not a fan of those vegetables.
Dd ate some vegetables more readily than others as an infant or toddler and I think there was always preference for sweeter tasting foods like sweet potatoes or fruit.