Yeah. That's a somewhat simple way of dealing with this. Introduce the concept of "ransom" as a means to recover catpured people (both PCs and NPCs). This encourages both sides to not kill/torture prisoners, and encourages folks to surrender rather than fight to the death. And yeah, the payment can come in the form of information instead of cash.