If you don't already know how to code, then it wouldn't be easy. Development isn't just another kind of job you can get trained for (unless you make very little and do things that would get outsourced). It's a skill that takes time and experience to grow into. That said, it's never "too late" for anything in life, if you find it interesting then try contributing to various github projects or even start your own.