it depends what you think the theorem says. you can regard it as a statement abiout numbers, i.e. a relation between the squares of the lengths of the sides of a right triangle, but euclid did not view it this way.
he viewed it as an equivalence between the geometric figure of square erected on the hypotenuse, and the two squares erected on the sides. And he had no theory of area at that point.
what he essentially proved was that it is possible to decompose the larger square into pieces which can be reassembled to form the other two squares. actually he did not quite prove this, but his same method of proof does do this.
i.e. one can define several different equivalence relations:
1) One figure can be decomposed into pieces which can be reassembled to form another figure.
2) two figures can be decomposed into pieces, and both sets of pieces can be reassembled together with the same third set of pieces, to form the same figure.
3) one can assign an area to every figure in such A WAY that figures which can be related in the ways above have the same area, and then the two figures have the same area. and so on. we tend to think of all these as the same, but actually defining area cREFULLY IS QUITE hard, and euclid did not do it. even showing the previous relations are transitive is some work, and eucloid did not do that either.
the proof that the numbers obtained by squaring the sides and adding are the same, does follow from the theory of similarity, but euclid did not have that theory in plACE AT THE TIME OF stating the pythagorean theorem.
so actually euclid did not prove the theorem at all, but gave only a partial proof.
i.e. a complete proof needs either a theory of similarity, or a theory of area, or the proof that the relations euclid used are transitive, none of which are in place fully in euclid, at the time he gave the theorem.
the treatment in hartshorne's geometry, euclid and beyond, is excellent.