It depends. If the helmet sustained an impact during the crash and you can see any scrapes, dents, or cracks, it should be replaced. Better to be safe than sorry.