No, it would not. Making useless work where none is needed is wrong, so there is no reason to artificially constrain students to being present. If a student is able to learn perfectly from a textbook and notes and other resources, or better yet, a video recording of the lecture, and is able to pass the tests and do the homework to prove they are indeed learning successfully, then there is no problem.
If you have to force students to attend lectures for the sole purpose of justifying the existence of your job, then your job should not exist.