Yep, it's quite nasty. In a long war, taking one of their core cities deep behind their lines with this kind of a trick can really hasten their collapse.

There is risk in losing your princess or the general not finding any mercs to hire -> quick death. However, I've used this about 3 times so far and it didn't backfire yet.