Started flying at 37. Integrated course. Instructed. Got a job on 50 seat turboprop two months before 39th birthday.
All written in the above posts is correct.
Doesn't make any financial sense to do what you're thinking or what I did.
Best thing I ever did though.