Yes, of course, Pythagoras theorem :) In fact, if our quadrilateral is a rectangle… then opposite sides are the same length, and the diagonals are also of the same length… and so Ptolemy’s theorem ...