Well that's a given.
Was getting rid of Hitler worth getting into bed with Stalin?
Was getting rid of Gadaffi, trying to g... Standing up to Gadaffi worth getting into bed and arming Saddam Hussein?
There's a novel, which might have been written before caretaker came out, where Kathy is annoyed because she can't broker peace between these dinky little warfleets, and eventually attacks both sides until they team up to destroy the Federation, who they are not completely aware is on the other side of the galaxy.