Need I go on?
Yeah General. Check out article 1 sec.9 of the Constitution.
You can answer all such questions yourself if you'll only remember the date May 6, 1861.
That is the date the Confederacy formally declared war on the United States.
On May 6, 1861 Union state citizens supporting the Confederacy met the Constitution's definition of treason:
Treason is punishable by Federal law, and after May 6, 1861, those Union state citizens supporting the Confederacy met conditions of that law.