At age 50, after a successful non-technical career, I took a few college classes and then went to a bootcamp. The bootcamp got me an internship (a bit humbling but it got me in the door) and I have been programming ever since. I will turn 60 this year and I am pretty sure I could do the same thing today that I did 10ish years ago. It was not always easy and I probably got a few lucky breaks along the way, but I would not discourage anyone from exploring the possibility.