NO! There is a clear conflict of interest where an attorney is representing a defendant and that defendant's victim in a separate case.  This would not only be a bad idea, but a violation of attorney ethics.  Person B should find his own attorney or ask for a different public defender and tell the court what the issue is.