I would actually go further, in sharing your knowledge you gain a deeper understanding, both by explaining it, so having to think more about the subject, and by those you share with asking questions.
Agreed - my father, a retired university professor - always used to tell me that the true test of understanding is being able to explain the subject to others. Given that he spent 40 years teaching advanced mathematical physics, I believe him!
FBW