Yes, you can book your train tickets to and from Tibet (Lhasa), but you need to know that China train ticket is difficult to book for foreigners, especially during the peak period of June to August. And the train tickets to and from Lhasa start selling 30-60 days before the departure date. The train ticketing schedule situation keeps changing always. If your schedule is flexible, you can try to wait for the tickets when it is available.