Controlling a PWM motor control module with an arduino

Is it possible to control a pwm dc motor control module using an arduino instead of a potentiometer?

An example would be something like this:

I know I can read the analog signal from the potentiometer, but can an arduino output an identical signal that the control module could read?

Thanks in advance.

No but you can replace the potentiometer with a digital potentiometer that can be controlled with the Arduino.