Of course, because it’s fiction, and whatever the writer says is the only solution winds up being the necessary solution. That’s why torture provides useful and accurate information and is necessary in “24” and why poisoning an entire planetary population is necessary with no other options presented as possible for the sake of interstellar peace in DS9.
The problem is in carrying that implied (intentional or not) message away from the fiction and holding it as real-life wisdom instead of a work of fiction with its own convenient Thermian Arguments to justify pretty much anything the writer wants to justify.