In addition to what others have said, I'd like to mention that it also depends on the lecturer. If you've a lecturer that simply reads off the lecture slides, then there's no point taking notes (there's probably no point even going to the lecture, lol). However, if you've a lecturer that goes beyond the lecture slides by giving useful examples, talking more in-depth about the material, etc., then I think there's value in note-taking. These extra notes really help come revision time.
Most importantly though, not only is note-taking often helpful for the sake of learning itself, but it's also a great guide as to what's going to be on the exam. Whenever a lecturer seems to be stressing a particular point or topic (read: you've got notes a page long for one particular slide)... well, let's just say that whatever a lecturer feels is most important or essential will be what ends up on the exam. Sometimes the lecturer will even directly say, "This is important guys, please write this down." When a lecturer says that, you'd be a fool not to do it.
I literally knew every question that would be on my final exam for tax law this semester - including a question about an offbeat, nitty gritty little legisative clause that was but a single slide in a 126-slide lecture. Sometimes you don't guess all the questions correctly and exactly, but that mostly comes down to a bit of luck, gut feeling and practice (veteran fourth year reporting in).
The reality is that at the end of the day, sometimes at university passing a unit and fully understanding that unit's material are not synonymous. The pace at university is ridiculously fast and sometimes it's near-impossible to do all of the readings and study required of you. Sometimes you need to cut corners. I do believe that taking notes helps you better decide where you can afford to cut corners.