You do have to pay an additional fee to travel on a night train (the amount depends on the type of sleeping accommodation you choose), but this is usually cheaper than staying in a hostel or hotel. You'll also maximise your time by travelling while you sleep.