Yes, I have had to secure both cast iron and galvanized vent stacks in some other units I have rehabbed. I have used blocking and some combination of metal strapping and clamping to secure them.
For galvanized pipe a sawzall blade works well and you definitely have to be careful. For cast iron...