It's certainly possible. It would help if you have a PPL and flew when younger... harder for old dogs to learn new tricks, but not impossible.
What was your MOS?
Unless you have fundamental aptitude/trainability issues in aviation (some good people do, and age doesn't help that), you should be able to retire as a regional CA.
But the regionals might get ugly over the next five years, so I wouldn't bank on that as Plan A... shoot for major airline FO. There should also be plenty of opportunity in corporate aviation (not hard retirement age).