Does it make sense to train all on Treadmill for race outside

I am training for a half marathon, and I can see the benefit to the training plan in swift, but wondering does it make sense to do the entire training plan inside then go out side for the actual race, in real world, with real conditions, and varying terrain and elevation changes…

And if want to do some outdoor training, is there anyway to incorporate even the long weekend run as an outdoor run and have it still track in zwift?