Of course, but you just go back in time to a point before infection. You will lose all the interim stuff, but's that's often still better than the alternative.
I have an emergency (applescript) button that turns off all by backup processes (Time Machine; Carbon Copy cloner; Backblaze). As they are all scheduled for different times of the day I should be able to get back to a clean version.