I think only hybrid car can do that.
For gas only cars like mine, if you shut off the engin, you also lose power to the brake. That's very dangerous and I will never do that.
One of my old cars had lost power on the highway and also lost the brake (braking became very hard and heavy). So I got the experience.