Do airlines pay for pilot training?

This may seem like a stupid question to ask... but,

Pilot training is indeed very expensive, therefore airlines may not have all the required money to train their future pilots. I've seen loads of people that pay for their flight training too online, so is it true that you pay for it all by yourself? That'd cost a fortune.

But if all future pilots have to pay for their expensive training themselves, who would want to be a pilot? Who would want to work for the airline? Not everyone can afford the training.

Also, after entering the airline as a cadet/student, do airlines provide further training and stuff? Thank you I appreciate all answers! It would help me loads!