Depends on how bad the dents are and how long past the “sell by” date. Think botulism.
The sell by date is bogus.
It simply means a company ‘guarantees’ the nutrition, for a specific amount of time...
the food inside a can , can be good for decades. Although it might, might, lose a small amount of some vitamin...