Using attach() and detach() function on a stepper motor with a easy drive.

I was wondering if it's possible to use the attach() and detach() function on a Stepper Motor

Why do you want to do that ?