Momentum is a measure of an object's motion, and it is defined as the product of the object's mass and velocity. When a car is moving, it has momentum, and this momentum will continue until it is acted upon by an external force.
When you turn off the engine of a car, you are removing the force that is propelling the car forward. However, the car will still have momentum, and it will continue to move until it is acted upon by an external force, such as friction or air resistance.
Friction is the force that opposes the motion of an object when it is in contact with another surface. Air resistance is the force that opposes the motion of an object when it is moving through the air. Both of these forces will cause the car to slow down and eventually come to a stop.
The rate at which the car slows down will depend on the amount of friction and air resistance that it encounters. If the car is on a rough surface, it will experience more friction and slow down more quickly. If the car is in a strong wind, it will experience more air resistance and slow down more quickly.
In general, the momentum of a car will continue if you turn off the engine, but the car will eventually slow down and come to a stop due to friction and air resistance.