Yes. Sort of.
They can’t prevent someone from quitting - we are in a right to work state - but there can be consequences.
They can ask TEA to hold that teacher’s certificate for up to one year for abandoning your contract.
It also will come up in every job interview when they call that former employer. If you even get to the interview stage once they find out that fact.
There are three reasons you can resign without penalty. Relocation of spouse, health issues of teacher or family, and change of family situation. Most districts let a teacher go if they are making a “vertical move” - assistant to head director, 5A to 6A, or into admin - but they are NOT required to do so.
If the teacher in question is you, hope you’re in a good union and that you’ve already called a lawyer. Given the shortage of teachers, districts are not looking kindly on contract breaking.