Yep, speed and torque are interchangable, with only the mechanical losses interacting.

But what isn't interchangable is the total available force. A retracting ram has less force to mutate from speed to power or the other way around.