No, you are only required to pay for your actual journey. For example, if you are travelling on a Delhi-Shirdi train and your travel is from Delhi to Nagpur, then you will have to pay the fare for Delhi to Nagpur only.