Let the point be (x,y) and the origin is (0,0).
Distance formula is

Substituting the points,we will get

Squaring both sides

And the pythagorean theorem is

And the above equation we obtained in in the form of pythagorea identity .
So the given statement is true .