Obviously understanding everything is a fine aim, and you should certainly begin every course with the intention of grasping all the main ideas and principles. You probably won’t manage it every time, but that’s okay. What you shouldn’t do is take this as evidence that you’re not very good any more, or as an indication that you should give up. Take it as an occasion to rise to the challenge, instead.