Almost certainly be fine.
For some of our courses in Physics, it was clear that every lecture was a different concept, more or less, and when it came to the exam you were faced with three questions from which you had to pick 2, and each question was basically “can you please show you not only attended this lecture but regurgitate the proofs from it”.
I went to all but two lectures. I was still shit because I am rubbish at remembering stuff.