I need help with Pythagorean theorem.

If both the legs of a triangle are 5 and 7 and the hypotenuse is 13, is it a right triangle? I’m confused.