As long as the enable pin is active, the stepper tries to hold position.
The behavior of this pin is controlled by the firmware.
In Marlin it looks like that:
// Disables axis when it's not being used.
#define DISABLE_X false
#define DISABLE_Y false
#define DISABLE_Z false
#define DISABLE_E false // For all extruders
-Olaf