Only with the child's consent: otherwise, if the child does not consent to or allow it, it would be one adult striking another--that is, it would be the crimes of assault and/or battery (the exact definitions, and when hitting another is one or the other, varies by jurisdiction).