A five year old child will see a rooster from a different perspective. Directly eye to eye so to speak. A five year old child is shorter, smaller and less physically strong than an adult. Little legs do not push or move an aggressive rooster.
If you have children under the age of 7-8 years old, where they have gotten taller I strongly recommend NOT having roosters. Look at the size of the brain, it is very small. Animals with larger brains have more training capabilities. Roosters are a crap shoot, some are good, some are not. But trust with a small child is a very precarious situation.
Rapid motion, high pitched voices, falling, running are all things upsetting to chickens. Rooster will often attack a small child first. This tends to ruin the whole chicken experience for people.
If you as an adult wish to try and train a rooster, and some people have had success, usually people with considerable poultry experience, that is one thing. However, a child is a rather dear to prove your theory on.
Mrs K