Legally it is not allowed. If that falls on the same employer/School. It should be okay. Some people does it discretely but it shouldn't be allowed by the book.
Our lawyer specializing in Visa and immigration matters might be able to answer you on that. His name is Wuttichai, you can reached him at 081 441 1668.