The moral of the story could be seen as the importance of following instructions. If Little Red Riding Hood had stuck to the path and not strayed, she might not have encountered the wolf. Also, it warns about the danger of being too trusting, like when she trusted the wolf's false words. It's a story full of lessons for children to be aware of the world around them.
One moral is about not talking to strangers. Little Red Riding Hood talks to the wolf, which leads to trouble. So it teaches kids to be cautious around people they don't know.