When I was babysitting my granddaughter when she was 18 months old, we were once outside when she saw the man next door outside in his yard. My granddaughter said “dada” as she referred to all men as dada. She was only 18 months old but she knew a man when she saw one.
She knew that Dada was the same sort of creature as the neighbor. My daughter did the same thing, but that doesn’t mean they have any knowledge of actual roles, or the real difference between men and women.