Correct. This is not a prison sentence. If the foreigner who is given a deportation order has the wherewithal to take a flight out of Thailand immediately after receiving the order and having paid whatever fine was imposed on him and other costs, if any, he is free to go from the court house directly to the airport, probably accompanied by a police escort, where he will be handed over into the custody of the flight captain who will have to hold onto his passport until arrival at the destination. If not, he will be provided with accomodation in the IDC, for a fee, until his departure.