@Jeff ****
generally yes, but better to not get to that point. Buy a cheap bus ticket to Laos or Cambodia, or a cheap flight to Singapore. Or use an onward travel website. And you can be asked for anything anywhere along your trip, but most likely at the start.