Is the following matrix diagonalizable?
$$\begin{pmatrix} 2 & 1 & 0 \\ 0 & 0 & 2 \\ 0 & 3 & -1 \\ \end{pmatrix}$$
I think it is. I found the eigenvalues that are $2, 2, -3$. Can I say that the matrix is diagonalizable because it is a square matrix $3 \times 3$ and it has $3$ eigenvalues?
Based only on these observations: no, you cannot conclude that (yet).
Because it is a 3x3-matrix, you'll need 3 linearly independent eigenvectors for the matrix to be diagonalizable. Since eigenvectors corresponding to different eigenvalues are known to be linearly independent, you know you'll find at least two of those.
The key is the eigenvalue 2, which is a double root of the characteristic polynomial. If you find:
The number of linearly independent eigenvectors corresponding to an eigenvalue is also called the geometric multiplicity of that eigenvalue. This allows the following rephrasing of the criterion: a matrix is diagonalizable if the algebraic multiplicity is equal to the geometric multiplicity for each eigenvalue.
See also Algebraic multiplicity for a related question about the same matrix.