Capacitors and motors

But my motor driver already has internal diodes in it. Also, do I put a resistor across the motor terminals where the capacitor goes?