No. They are similar because a claim can be made under either an indemnity or a warranty but they are dealt with differently.
A warranty is another kind of contractual promise, but if a warranty promise is broken you’re likely to end up in court.
Further reading