Yes. Quotas are allocated on starting points irrespective of where you de-board. Point is that those 8 seats can be booked an anyone traveling from Agra to anywhere.
Second: Dedicated quotas are allocated to only specific bigger stations. Like Delhi Agra Bhopal etc.
The rest intermediate ones share quota of preceding bigger station.