Depends upon how badly damaged the subfloor is. If subfloor is unacceptable it should not have any hardwood installed over it nailed or glued.
Do you have any photos?
Do you have any photos?