Book in the same train from Agra to Delhi if tickets are available. You can continue your journey in the same train. If you are lucky enough you can continue in the same berth (provided no one occupies that berth which is very unlikely).
If it is Rajdhani.. I think it is more unlikely that gets occupied from Agra to Delhi