I have worked with 'experimental' peristaltic pumps using every kind of motor drive (PWM, H-Bridge, Stepper, Servo) and never had a problem as long as you remember to
make sure that your analog and digital grounds stay as separate as possible.
If you need more isolation then send the PWM through an optocoupler which will break the ground connection entirely.