My court appointed attorney was the DA? Is this a conflict?

Is it a conflict of interest when the court appointed attorney on your case was the district attorney on a prior same charge and the district attorney trying the case was your defense attorney?
Please sign in to answer this question.