There is no one-size-fits-all answer to this question, as the answer depends on the type of repair being performed. In general, however, performing a repair on a drive will not erase it.