Answer:
It depends on the problem
Step-by-step explanation:
Often, you want one or another of the lengths in the right triangle. The Pythagorean theorem gives a relation between the squares of those lengths, so you take the square root as a last step. The last step may be to simplify that square root.