Prior to puberty is the key.
After puberty, especially after 18 or 20...can be bad news.
One of my kid had mumps in his late teens...no kiddos for him.
Thats a shame.
Fortunately, there were vaccines for my kids. And I am not an anti Vader...if the docs wanted to give my kids shots...I took them all.