It is definitely not!
What you wrote down is a wavefunction which describes the state of a particle, not an energy, which is ofcourse a number. Also, this is an eigenstate of the Hamiltonian for an infinite square potential well, which you failed to mention that at all. The eigenstates depend on the potential energy function.
So for the infinite square potential well the eigenstates of the Hamiltonian (socalled stationary states) are give by the wavefunction you wrote down. The energy eigenvalue E_n corresponding to psi_n can for example be found by:
[tex]\hat H \psi_n = E_n \psi_n[/tex]