Yes, the confederacy was about State’s rights. And among the south it is still known as the ‘War of Northern Aggression’.
Texas explicitly enshrined the Right to secede from the US at any time when it became a state… putting the Federal govt. on notice it would not tolerate that again. Every Texas legislative session begins with a vote to stay or secede from the US.