That's actually terrible advice, in my opinion. Raising a family is REALLY hard work that requires a lot of time and dedication out of you. It also restricts what you can and can't do; quitting jobs that you hate or moving somewhere to seize an opportunity become astronomically difficult with a family.
Families are important, but why limit your potential early?