The 2011 is a great machine. I loved mine.
In regards to your question, the best thing you can do for your Mac is replace the HDD with an SSD drive. Outside of that, I wouldn't put any more money into the Mac.
If I were in your Mac shoes, I would sell the 2011 for what I could get for it, and then use that money to get an M1 MBA.