Yes, they were. The Civil War was fought not over slavery, despite what YOU may think. It was a war because the South seceded from the Union. The Union didn't like it, so they waged war against the South. Ever wonder why there's 13 white stars on the confederate flag? Probably not. Too much thinking for you, more than likely. You just do whatever everyone tells you, right?
There are 13 Confederate states; Florida, Georgia, Alabama, Mississippi, Louisiana, Texas, Tennessee, Kentucky, Arkansas, South Carolina, North Carolina, Virginia, and Missouri. One star for each flag. These were the states of the C.S.A. and their flag was, as you idiots call it, "the racist flag". Southerners fly this flag because it's a symbol of rebellion and independence.
Oh, and as for the "enslavement of the colored ones", not every Confederate citizen/soldier had slaves. For example, Confederate Generals Robert E. Lee and Joseph E. Johnston owned not a single slave nor did they believe in slavery. Also, there was slavery in the North, too. Maryland, for example, had slaves.
Now go get an education before you hurt yourself.