Teaching high school physics will do more good for more people than landing a spacecraft on Mars.
So, yes, a good teacher could inspire 10+ others to make spacecraft, tech startups, etc. Maybe the ROI for humanity is greater if that teacher stayed as an IC in their field.
Either could inspire someone to pursue a career in science, I was more thinking of just practical benefits.