The common wisdom says that babies can' t form full memories until much older. However, children
can associate smells, colors or other senses with "bad memories".
My daughter spent three months in a neonatal ICU at birth, now is very healthy, but when she visits me in a hospital she can't stand the smell and has to leave. She can't remember her experience, but still the smell is a trigger.