no. segregation did not create the large black underclass in America. slavery created it. segregation was instituted when that class already existed, not to keep black people to a separate society (the freedom of association defense, broadly) but to maintain them as a present underclass.
In reply to https://x.com/lazlo_writes/status/2056590337402175653 (not in archive).