The power in any story is the life truth which lies right below the surface and is interwoven throughout. Never tell the child what truth they are supposed to learn. They will learn far more all by themselves in ways we never expected or anticipated. They will relate the truth of the story to their own experience without our moralizing.
The hardest thing for the author is to dig deep into their own experience and tell the truth. That is when the truth often hurts.