Attending some kind of pilot school is a necessity for becoming a pilot.
There are many routes open to becoming an airline pilot. If a person already has flying experience, such as through armed forces training, then https://tedbscn880854.blogocial.com/investigating-pilot-school-training-with-samples-69779225