No, but the causes of ear pain can be different. The most common cause in children is otitis.
An ear infection can be defined in two ways: otitis externa and otitis media. Otitis externa usually involves the eardrum or tympanic membrane outward, while otitis media involves the tympanic membrane inward; that is, one is an outer ear infection, and the other is a middle ear infection.
When children suffer from a lot of mucus or colds, otitis media is likely the cause. This is because the movements of mucus from the nose or throat to the middle ear, as all these things are communicated through the Eustachian tube.
There are also other known causes of ear pain, such as a ruptured ossicle or ear canal due to handling, a build-up of earwax that creates a plug, an abscess, or referred pain from nearby, such as pain from tonsillitis that is felt in the ear.