of course not. you are allowed to attend any lecture, only if there are empty seats for you and you don't disturb the class. in universities, you study in a free and creative environment.
oh, really? were you not caught?