Absolutely, it’s called gerrymandering (whoops, you said federal, and that one is called the electoral collage, but it’s basically the same thing). It’s what this whole Dems leaving the state thing is all about.
Texas Republicans have locked Democratic Rep. Nicole Collier inside the state house chamber and refuse to allow her to leave until she signs a 'permission slip'