Yes but The best way is to apply for a new passport before the visa expires. You can do it 6 months maximum before then. You can transfer the passport after that. You can extend the visa normally for 1 year. If you do not apply for a new passport, you will get a visa according to the passport validity, which is 8 months from September to May.so you lost 4month π
you lucky many ask if you come Thailand manytime go in a lot that case maybe break in Thailand for 2month πor go get visa more longer from Thai embassy back to Thailand this all have case befor π