Can a lawyer defend an accomplice?

As far as I know, different lawyers in the same law firm can act as defenders of different criminal suspects in the same case. See Provisions on Several Issues Concerning the Implementation of the Criminal Procedure Law. "Defenders shall not defend more than two criminal suspects and defendants in the same case, nor shall they defend more than two criminal suspects and defendants who have not been dealt with in the same case but are related to their crimes."