Yes, but electric cars need electricity which has to be generated from primary energy sources like coal, oil and uranium while combustion engine cars directly burn gasoline which is a primary energy source.
Thus, when you are comparing the efficiency of electric cars with combustion engine cars, you have to take into account the efficiency of the electricity generation process.
And the amount of energy needed to get the raw oil, distill and distribute the gasoline. Not to mentioni that electric cars are ideal to be powered by renewables, as they bring a great storage with them. In Germany, you need about 10 solar panels to provide enough energy for powering the car.
ICE engines convert less than 40% of gasoline's energy into movement, and the rest is lost as heat. This inefficiency is unfixable: the waste heat can't be avoided in a combustion engine. In cars there isn't enough space and carrying capacity for a steam turbine that could make a good use of the heat. In a stationary power plant, there is.
Stationary power plants are incredibly efficient, to the point that burning gasoline and transmitting electricity to an EV is still way more efficient than burning gasoline in a car.
You may be mixing up things with natural gas used for heating. Fuel -> heat is most efficient at the destination. But ICE cars don't run on heat, they radiate it away as waste.
Thus, when you are comparing the efficiency of electric cars with combustion engine cars, you have to take into account the efficiency of the electricity generation process.