Idk about that. I mean if students attending is important for the quality of the class (group based stuff / student participation etc.) then sure. But IMO lectures should basically always be optional in college, grades should be based on tests and maybe homework but not just on showing up, if you can learn the material your own way or just know it already you shouldn't be punished. I know I have often not gone to class because I find lectures harder to learn from them textbooks and online material most of the time, or just because I know most of the material already.