Many do, but not all. Do keep in mind that the typical bike frame warranty (not a guarantee) is almost always restricted to workmanship issues from the manufacturer. That only applies if the failure is one that was caused by, or a direct result of the manufacturing. It will not cover user damage, crashes, etc.
- Global Warranty | Specialized.com
- https://www.trekbikes.com/b2b/us/en_US/warranty_policy/
- Terms and Conditions | Giant Bicycles US
- Limited Warranty
Noting the above, many makers offer a “crash replacement” option that is a lower cost option if you happen to damage the bike yourself.