It makes sense that one would be nervous about purchasing a home with prior termite damage. However, in general, you can safely purchase a house with a history of termite damage as long as proper precautions have been taken.
Homes that have experienced termite damage in the past are not any more likely for a new infestation than other homes. Unless there are currently termites living in the home, it is entirely safe to purchase property that has had documented termite damage. You should simply take precautions by getting a WDI report.