Yes. Effectively, the 'accelerator' pedal is controlling the speed governor limit in the fuel injection pump on Old Skool diesels. This is why, with a modicum of care, you can gently ease in the clutch at tickover to start the vehicle moving on a level or slightly uphill inclined stretch of road. Also, you don't have to 'work' the accelerator pedal as much as in a petrol engined vehicle to maintain a steady cruising speed up hill and down dale. However, this no substitute for cruise control where you wish to cruise right on the speed limit.
A good comparison between petrol and diesel engine responses to the accelerator pedal can be made using a DC motor as the analogy whereby the petrol engine's behaviour is more like using a rheostat to control current flow to a PM DC motor versus using a voltage converter that applies a steady voltage determined by the user's voltage control setting.
In the former, it takes very little current on no load to make the motor run at 70% or so of the voltage supply's limiting speed (the voltage applied when you reduce the series resistance of the rheostat to zero ohms). Applying a load under this condition will dramatically reduce the motor speed (perhaps even stall it) unless you compensate by allowing more current to flow by reducing the resistance in the rheostat. In this respect, controlling the speed of a petrol engine is on a par with trying to control the speed of a PM DC motor under varying loads using a variable series resistor.
In the case of a (n Old Skool) diesel engine, the behaviour is analogous to using a variable voltage stabiliser to maintain a constant voltage at the PM DC motor's terminals. Unless current compensation is used[1], the speed will sag slightly with increasing load due to volt drops internal to the motor's armature and brush gear resistance. The sag in speed is typically a matter of a few percent versus the rheostat controlled case where a 50% or greater loss in speed can occur.
[1] It is possible to give the voltage stabiliser a negative impedance characteristic to cancel out the motor's impedance so as to maintain speed over its normal loading range. However, this negative impedance needs to be less than the motor's impedance to avoid runaway overspeeding (the maximum voltage will provide a speed limiting effect anyway in this case - you'll simply have lost stable speed control, changes of controller input will cause wild and uncontrolled voltage swings)