Yep. He swore an oath to protect the US from all enemies, foreign and domestic.
As did the military ... I took that oath a number of times in my 24 year career.