In most circumstances, you must purchase a ticket before you board a train. Most trains require reservations and you should not board reserved trains without a reservation. Passengers who do so are not guaranteed a seat and may be instructed to get off the train at the next station stop.