I did that when my first wife and I were getting a divorce. My name was on the lease, where she and my baby son were living, I wasn't living there at the time. The place ended up having a big time cockroach problem. Management sprayed, they came back. Sprayed again, they came back again. The last time they sprayed, I told them if the bugs show up one more, I will find another place for them to live, because that was unacceptable. Well the bugs showed up the next day and I moved them out that same day, since all their stuff was packed up anyway since they had to keep spraying.
They tried to use scare tactics to get me to pay, since they had just moved in and I signed a six month lease. I just threatened them right back saying I would report them to the housing dept. They ended up dropping they're fight, and I even got my deposit back! Ha ha. I showed them.

:|
So I guess it all depends on the circumstances.