We know about a matrix $A \in \mathbb{R}^{n\times n}$, that $A^2 = I_n$. Does the matrix $A$ have a basis of eigenvectors?
Below are my thoughts about the problem.
Some of the roots are diagonal matrices. For such cases the basis exists.
But other square roots of $I_n$ can be antidiagonal, e.g. for $n=2$: $$\left( \begin{array}{ccc} 0 & 1 \\ 1 & 0 \\ \end{array} \right)$$
Here we have to manually check, that algebraic multiplicity of an eigenvalue equals its geometric multiplicity.
How can we do it for an arbitrary $n \in \mathbb{N}$?
The general fact is:
Therefore, the answer is yes, because $X^2-1=(X-1)(X+1)$. Therefore, the minimal polynomial of $A$ is one of $X^2-1$, $X-1$, $X+1$, all of which split into distinct linear factors.