Foreign backlinks are not automatically bad. If they came from real sites and match the old topic, fine.
If the anchors are random casino/pharma/adult stuff, or the domain used to be in a totally different niche, I’d be careful before building on it.