@Rob ******
That's tough to answer. Some places will accept it and some will not. Of the places that will accept it, you need to make sure it's an actual ticket that goes out of Thailand, and not just a bus ticket to the border city on the Thai side with plans to cross the border on your own.