As long as current is passing through the coils and the spacecraft hasn't yet stabilised in a fixed orientation with respect to the external field, the craft's spinning will continue.
Very small satellites may use permanent magnets instead of coils.