Usually, yes. Carfax's valuation FAQ estimates the average impact on retail price at just under $500 for a vehicle that has been in an accident, and about $2,100 for one with severe damage. Those are averages for retail prices, not a fixed trade-in deduction, so the effect on your car depends on what happened and how it was repaired.
Weather damage raises its own question; see whether to fix hail damage before trading in your car.
Carfax lists accident history next to service history, number of owners, open recalls and how the vehicle was used as inputs to its History-Based Value. In other words, reported history is part of how the market prices a specific VIN, not only its year, model and mileage.
Mileage works the same way: it is one input among several. See whether high mileage lowers your trade-in value.
Our practical recommendations:
If damage has not been repaired yet, our guide on whether to fix your car before selling it to a dealer covers that choice. Maintenance paperwork is a separate help; see whether service records help.
PriceForMyTrade manually sends your request to local dealerships, which contact you directly. It is free to sellers, there is no obligation to accept, and offers are confirmed after a physical appraisal. See how competing offers work.