Movie was pretty terrible all-around.
It was supposed to be satire, but didn’t pull it off very well. Nevertheless some of the allegorical stuff still works - the “federation”, “become a citizen”, and mostly the bad military intelligence that caused troops to be sent off to fight in a foreign land only to get slaughtered before they even landed.
The book had male troopers guarding the entrance to the female quarters.
The movie had the sexes showering together.
And many other Hollywood “improvements”.
The shower scene was kinda nice.
There are actually Starship Trooper sequels, and they are worse.