Yes you can replace your current motor with a two speed. Is your pump the WF-3 or the WF-23?

Pentair does not make motors, they usually use a branded A.O.Smith now branded as Century motors on their pumps which are also sold aftermarket.