homomorphism

Let $G$ be a group . If $f(x)=x^4$ is homomorphism then $f(x)=x^{n^2}$ is homomorphism