Can I pursue a bachelor degree at 42? What should I consider when deciding whether to do so? I am contemplating pursuing a bachelor degree in Electronics and Communication Engineering or System Engineering. Not to look for a job with it but just to expand my knowledge. I have a reasonable income as a programmer.
I have a certification in Electrical and Electronics Engineering from City&amp;Guilds 20 years ago but ended up being a self-taught programmer. for the past 15 years, I have been able to win and deliver myriads of projects projects successfully. I'm versatile in various programming languages: C/C++, Java, Python, Rust, Haskell, Lisp (and its derivatives).
I thought of expanding my knowledge in Electronics Engineering either by self-thought or via school. My worry is, I will end up having my degree at 47 if I enroll.
What do you suggest I should consider when making this decision?
Firstly, to answer the actual question at the top: yes, absolutely. There is no age limit on doing a degree. It is not at all unusual for people significantly older than you to complete degrees.

My worry is, I will end up having my degree at 47 if i enroll.

Is that a problem? Most people with degrees have degrees at 47 - they just happen to have had 26 years to forget most of the material in between. Sure, having a degree earlier might have been a financial/career advantage, but unless you've got a time machine (in which case present it and collect all the degrees you could ever possibly want) you can't change that, so your choice is, instead, between being a 47 year old without a degree and being a 47 year old with a degree - I can't see any particular disadvantage to the latter, unless the process of doing the degree course is going to cause you problems (via stress, loss of income, cost, work-life balance issues, etc.).