No, the Confederate States of America fought against a war because it wanted its self determination and the United States refused to allow it.
Self determination to enslave men, women and children.
Count how many times the word “slavery” is mentioned in the Declaration of Secession.
From the Texas Declaration of Secession:
Texas abandoned her separate national existence and consented to become one of the Confederated Union...She was received into the confederacy...as a commonwealth holding, maintaining and protecting the institution known as negro slavery— the servitude of the African to the white race within her limits— a relation that had existed from the first settlement of her wilderness by the white race, and which her people intended should exist in all future time.
In all the non-slave-holding States...the people have formed themselves into a great sectional party...based upon an unnatural feeling of hostility to these Southern States and their beneficent and patriarchal system of African slavery, proclaiming the debasing doctrine of equality of all men, irrespective of race or color— a doctrine at war with nature, in opposition to the experience of mankind, and in violation of the plainest revelations of Divine Law. They demand the abolition of negro slavery throughout the confederacy, the recognition of political equality between the white and negro races, and avow their determination to press on their crusade against us, so long as a negro slave remains in these States
...all white men are and of right ought to be entitled to equal civil and political rights; that the servitude of the African race, as existing in these States, is mutually beneficial to both bond and free, and is abundantly authorized and justified by the experience of mankind, and the revealed will of the Almighty Creator, as recognized by all Christian nations...