Many controller share the stepper enable enable pin with multiple stepper drivers. You need to disable all axis that the enable pin controls.
Eg the Creality V4.2.2 and V4.2.7
#define X_ENABLE_PIN PC3 // Shared
#define Y_ENABLE_PIN X_ENABLE_PIN
#define Z_ENABLE_PIN X_ENABLE_PIN
#define E0_ENABLE_PIN X_ENABLE_PIN
So you would have to disable all stepper to unlock E on this board.