True, it 100% relies on the circumstance of the situation. You'll need to weigh up potential damage done to zombies against likely extra CR generated by flanking unit.
Dwarf warriors are very vulnerable to such manuvours as they are one of the units that has a low damage output, yet does not take much damage either. The key to this is the fact that black knight break ranks. With something like the Varghulf or a lone vampire, which does not break ranks, its much more dangerous. To some degree, the knights would be better off getting a such a charge on such a dwarven flank without the zombies, although the zombies do hold them in place and help with the out-numbering factor, which makes it easier to achieve.
On the other hand, if your zombies were fighting say a 7x2 unit of still frenzied witch elves with hag brew, you could easily lose 5-6 black knights just from CR generated from the elves killing the zombies. Obviously, each example highlights the positive and negatives of such a move dependant on troops your zombies are fighting. You just need to be aware of such posibilities occuring, and treat such flanking actions with a bit more caution than you would for skeleton or ghoul units.