I, for one, have a burnout personality, and I'm prone to getting tired of certain hobbies. I say have fun with it while it's the thing you want to do, and if it remains the thing you want to do for a long time, then go for it. If you enjoy programming for awhile and then get tired of it and want to do something else, then when that happens, you can set it aside and do something else.
I think you can easily fall into the mistake of obsessing about sunk costs; you've studied law, so it doesn't make sense to learn programming? Why not both? You may think you're old to embark on learning a new "trade", but most of your life has been about learning the basics of human interaction and children's education. You're only a small fraction of the way into your adult life, so you have a huge amount of time to learn not just two major trades, but as many as you want to. Leonardo da Vinci was a painter, sculptor, architect, musician, mathematician, engineer, inventor, anatomist, geologist, cartographer, botanist, and writer, and he died in his sixties! Make time for the things you want to do, because there is time; if you truly can't find the time to do everything you want to do, you're probably just bogged down with time commitments above and beyond what you really need.
As I see it, if you're too busy to enjoy yourself, you're probably treating life less as an experience to be enjoyed and more as a job to be done right. Yes, it's definitely important to make sure you're planning for the future, but if you get too deep into making sure you enjoy some far off future, that future will never come; you'll always be working for your future. You should be able to find a balance between ensuring you're doing the right thing for the future, and ensuring you're enjoying what you're doing (or learning) right now.