Since the Confederate states were dropped from the Union and later readmitted over time, that's not a crystal clear interpretation. There's a case to be made that the Confederacy seceded only to be reconquered by force.
The political designation of where they were fighting is less significant, and actually makes this a better analogy for an American Citizen fighting in a foreign land against the American Govt.