yes you can book a telescopic ticket from Varanasi to Mughalsarai and then Mughalsarai to your destination.
or else just simply book from mughalsarai and choose any mode from varanasi to MGS, its a very short journey.
Infact, choosing train for this section is not suggested as they are stranded for hours.
Instead go by road.