Hi, I've just finished a CS degree and have been using a 2020 MacBook Pro + a Windows desktop. Honestly speaking as long as it works well your MacBook should be fine for taking notes and doing most of the work. I did all of my notes on my Mac with Notion (it's amazing - highly recommend) and probably around half of my programming on it too (just due to personal preference of programming on a desktop).
Windows is great for programming, and some apps may require it. If you Mac supports it (I believe you need an intel-based Mac, not 100% sure), you'll find an application called Bootcamp pre-installed which actually lets you run Windows on your Mac. It's great but if you use it I'd recommend downloading iCloud for Windows so you can transfer your files more easily. This saved me when my desktop died on me. My uni's instructions were also all Windows-based so translating that to Mac was confusing once or twice.
If your laptop is running slow or you're looking for a new laptop all of my friends have HPs and they've said they're great, I've seen them do student discount in the past but am not sure on what they're doing right now. I would say the advice from the Uni of Salford's rep was very good for the specs you'll need, you can also email your course and they'll usually recommend some if they have specific requirements. My uni also had labs with Windows computers we could use freely when there or remotely connect to from home, and the library loaned out Windows laptops for free too. I'm not sure how many unis do this, but I believe a fair few do. Should have some info on their website.
I've seen Linux mentioned in an above message and honestly wouldn't recommend it. My course touched Linux very rarely, and when it did the university provided software to run Linux from Windows/Mac devices so that wasn't a problem, I'd imagine this is common at other unis too as having a Linux device is rather rare from what I've seen in class. Another recommendation is getting JetBrains software (works on Windows, Mac & Linux) as it's free for students and amazing for programming with - I've used it since day 1 and am gonna be super sad when my student plan runs out.
If you do get a new laptop, keep your old one for emergencies! It's very unlikely you'll be bullied for using an old laptop, mine is a mac from the same era as yours and I've never had any negative comments. Ultimately it's up to your personal preference and what's best for your course, you can go into stores like Curry's and try out a few if you're unsure.
Hope this has helped, and good luck with your course!