I used to think this way, but learning how to take math lectures really changed my university experience. To my first semester me:
1. Go to the lectures, sit upfront (where you are definitely not going to use your phone or fall asleep)
2. Get the book or script that corresponds to your lecture. Almost all math lectures follow some sort of book. If unsure, ask your professor.
Just reading ahead for half an hour prior to the lecture will make _such_ a difference, as you won’t be lost and can focus more on contexts than on definitions.
3. Feel free to ask questions. If you know where you are (see 2.) it’s much easier to know what’s wrong. Professors are human and sometimes forget to give some theorem they are using. It’s really easy (and frankly surreal at first) to be that guy that points out errors to the professor (in a respectful way!).
If your shy or you have the feeling, that the problem is indeed on your end – take notes of things that are unclear and ask them after the lecture. Professors usually love to talk about their subject!
4. Last but not least: Keep calm and carry on. It’s completely normal to feel overwhelmed at first ;)