Only to the extent that your best interest includes buying the house. But if the house needs tens of thousands (or more!) in repairs, then very likely buying the house is not in your best interest. That's kinda the point of an inspection.
I don't think there's a 10+ year old house in existence that doesn't need 1-2% or more of the building value in repairs. For the two properties I bought, I had an inspection report for over 10% and around 3% of the purchase price. Neither was a reason to not proceed.