There weren’t any black CSA units till the end of the War, prior to that, blacks in CSA units were not combatants, nor members of the military. I would not be surprised if blacks attached to CSA took up the arms of fallen members of their units to fight the Northerners. From contemporary accounts of Northerners, many blacks identified as Southerners, though considerable numbers of escaped slaves became Northern camp followers, as well.