Only in electric vehicles. Gasoline and diesel engines generate a lot of waste heat, which is why they have radiators at the front of the engine compartment for water cooling. The cabin heater in most vehicles is an optional air path though a small heat exchanger on the radiator water loop, so it’s as efficient as possible. That’s also why the car has to be running for a few minutes before the heat starts working.