Friendship... is not something you learn in school. But if you haven't learned the meaning of friendship, you really haven't learned anything.
Life isn't so complicated for children. They have more time to think about the really important things. That's why I occasionally moralise in my children's books in a way I wouldn't dare when writing for adults.
Take this marriage thing seriously - it has to last all the way to the divorce.