No, it was not. But then I never ran across a fellow officer who did not consider his loyalty to be to his country first, and who was motivated to preserve, protect, and defend the U.S. Constitution and not some state constitution.
I served in the US Navy, with pride, and took the Oath, but if the US attacked my state, I would have considered that oath null & void.