no you have to buy from ypr only. Reach the station by 10 pm and book the ticket at current reservation. By any chance if you dont get it, dont panic. Just buy a SF gen tickt to KCG , look for charts pasted outside the coach, choose a empty berth and sleep. When TTe comes, pay the difference amount.