Sort of. But let me give you an idea of the problem.
After the Civil War, many states established a set of laws called Jim Crow laws, pretty much setting up apartheid by race. These laws were generally upheld by the courts, including the United States Supreme Court in the 1896 case of Plessy...