Replace Potentiometer

It's worth a try, is what I say. The caveat is going to be if your original circuit was six volts, and the PWM only goes up to five. I'd say if you attach the PWM pin to where the wiper used to be, there's a good chance it'll work.