Yes,
And if I remember correctly a Confederate regiment or brigade that belonged to Jackson's command was wearing Yankee uniforms that they took from a train raid.
I wouldn't have been able to tell who to shoot at.