Monitors and iguanas can both use tails as whips just fine, as long as they aren't doing the sonic boom thing it seems perfectly logical.
Not to mention there are sauropods with tail weapons, why would those evolve if they weren't already using them for such a purpose?