yes in some trains there are distance restriction. you cannot book tkt within the distance mentioned for that train. If you want to book in such train you have to buy the tickets whose distance must be above mentioined distance and you can deboard anywhere between this two station.