Your next pocket travel guide
Upvote:2
Yes, that's totally fine. Thailand doesn't care what passport you use after leaving, and the other country won't care what passport you used before.
See also: I have two passports/nationalities. How do I use them when I travel?