The fact that pilot training is expensive serves a good initial hurdle to weed out those who really want to do it and not those looking for something to do in life.
No, it does the opposite I'm afraid.
It just finds those who have enough money to do it and procludes those who don't.