It takes three deleted answers on a question for the question to be automatically protected.
Automatically protect questions with three or more low-rep-user deleted answers
Does the same apply for answers deleted as spam or rude/offensive with flags?