🙈Dumb question Alert but honestly wondering🤔

So if babys can start tasting in the womb at 27-28wks and also opening there eyes ...are there certain things that we eat that could hurt babys eyes? Example...spicy foods. Wouldn't it burn there little eyes or no?