Yes of course- also because of inbetween stations those quotas will be lying for people who book till ubl- so on charting if its unbooked the same will be allotted to other passengers till disconnection point
Eg: you booked gwalior to pune- pune to ubl they can allot only in slip- so that cannot be allotted to a person booking from nzm to ubl- so that will be vacant- so on charting such vacancy for mid-stations will be allotted