Partly, but the nature of the job involves days away from home, odd work hours, being called in on short notice, stress ... obviously WFH is not possible. Stuff that a lot of young people just don't want in a job these days. More pay solves everything, up to a point.
I mean that is kinda a result of poor treatment of workers thou? If the railroads hired enough people, didn’t union bust, and keep reducing crew size from 4, to 3, to 2, snd now I think single crew trains? A lot of what makes the job bad would go away.