https://money.usnews.com/careers/best-jobs/carpenter/salary
https://money.usnews.com/careers/best-jobs/electrician/salary
https://www.indeed.com/career/computer-engineer/salaries
So in order to do that, your programmer would have to spend a couple of years as an apprentice, with very little income, and then end up working at jobs earning about 60-70% of what they were earning before.
Another thing that you might consider is that being good at manipulating complex, very abstract systems with a keyboard is absolutely no guarantee of any talent for manual labor, quite likely the reverse.
This is just the reverse of the "50-year-old unemployed autoworkers should learn to program" meme, and just as implausible.