Some cars can do it, some can't. Diesels and high displacement petrols excel at this because they have a lot of torque in the low end. The reason higher displacement petrols are so capable is because... Well... They have a high displacement engine, and one of the ways to achieve a higher displacement engine is to increase the stroke. A larger stroke means more torque, that's why HGVs have huge diesel engines that produce thousands of Nm of torque. Your typical HGV will likely be something like a Scania 440, which has a 13L engine and produces 2300 Nm of torque @1000-1300 RPMs. An 8.4L Dodge Viper for example, will produce 375 Nm of torque at just 1000 RPMs. For reference, an Aplina D3 BiTurbo, which is a 3L sports Diesel, doesn't produce that amount of torque until ~1600 RPM.
Diesels also fight to keep the RPMs at or above idle, so if you put load on the engine without touching the gas pedal, the fuel delivery system will respond by dumping more fuel into the engine.