You need to understand circuits to answer that question. A potentiometer of any kind will work in theory, as they just increase resistance on the circuit, but the wrong kind can either not fully shut off the current, or if too strong shut it off so fast that basically it is either on or off. You really need to know exactly what you're putting into the circuit. Don't guess. if you're unsure, you should probably not do it. If you have some software that helps design circuits, then you would be safer.