No. But you should report that teacher's conduct to the college.
If you actually do fail the class as a result of this, you should appeal though whatever process your college provides for that purpose. Chances are that your teacher doesn't actually have the authority to fail you for not...