Holding a Shepherd's pie until dinner
Yes, keeping it in a 200F oven will keep it safely outside the bacterial danger zone, but it may also dry out a bit. Covering with foil or adding a pan of water to the rack below may help that, though that may also make the crust soggy. You'll have to experiment a bit.