Damn straight. I applied to be a trainee pilot with BA some years ago - they were taking them off the street in an almost unheard of move for an airline, and the pay as a trainee was around 21k, with those newly qualified going out as a second officer on around 40k. Drivers at my place are on a shade less than 50, with April 2016's payrise to take them above 50k.
And that was the good old days when at least BA paid for the training...They still take cadets off the street, but now you have to front circa 100k for the training via a loan, which you get back via an increased salary, but you're still looking at years until you reach over 50k, and then you are still paying back the loan let's not forget...
Oh and that's BA, the best deal in town...The rest of them, you front the 100k again, but they don't help you pay it back, atrocious T&C's, treated like dirt, starting salary 30k, immense stress, ridiculous hours leading to fatigue and depression, and generally under-appreciated for doing what is a responsible and difficult job.
The rail industry is like a paradise compared.
The average pilot salary that some websites quote is heavily skewed by 60 year old captains earning in the 100-200k region, sure it's great if you reach there, very very few do, and you'll have to go through everything I described above to get there. Those captains never had go through it when they started out, back when the industry truly was a golden place to be, even starting out as a cadet.