Yes, a 5-year-old can be non-binary.
According to the available reference, children can identify as non-binary just as they can identify as a boy or girl. A child can begin to communicate their gender identity once they are old enough to speak and talk about themselves. This means a 5 year old is perfectly capable of expressing that they feel like neither a boy nor a girl, therefore identifying as non-binary.