Normally you should not expect to find Southerners serving as officers of Northern regiments, but there are quite a few examples of the reverse.
Interestingly enough, officers of Confederate regiments were being appointed to recruit and organize black commands for military service when the war ended.