Correction: you can ban anyone who ends up in your prison for doing something the game considers to be a crime. If someone ends up in prison for attacking your military forces, you can't ban them, can you? Even though Keplerstan has passed a law that says that attacking Keplerstan is a crime punishable by death?
Well, yes. But that's a game play restriction to keep the game from being Not Fun.