That’s only if a court determines that it doesn’t violate voting rights by disadvantaging races from voting. That was a problem in Alabama, may soon be a problem in Georgia, and might end up being a problem in NC. SCOTUS previously slapped down aggressive redistricting efforts by the NC GOP this year.
Now, I’m not saying “don’t worry, the courts will fix it”. Far from it. But I’m saying, don’t assume this is a done deal and will be guaranteed to stand.