Can a plaintiff's lawyer work for defendant discreetly?

Legal ethics prohibit that.