Back in the bygone days of Myspace I learned my first foreign language. Eager to express my "individual" pre-teen self, I scurried over to W3schools and learned enough CSS and HTML to code my own layouts. With the rise of Facebook, I gradually shifted platforms, leaving my coding experience behind until college.
As I am now brushing up on my coding skills - and learning a few new tricks, I've noticed it's much easier to figure out than when I was 13. But that has little to do with age, and more about language experience. If you know how to learn another language, you can learn to code, and vice-versa.