I think your advice holds for people who are well on their way into their careers, but even with someone with half the years of experience (i.e. 7-10 years) can be invaluable to someone starting out in the field.
I don't think I would've been able to right my career had I not had a dev with about ten years experience mentor me for a year. Granted, he might be an edge case since he learned teaching before becoming a programmer, but nonetheless his empathy and encouragement on top of some lived experiences was invaluable to me.