Arpit Kansal showed here that a group $G$ in which $x\mapsto x^3$ is an isomorphism is Abelian. He first showed that we have $a^3b^3=b^3a^3$ for all $a,b\in G$ (only using that $x\mapsto x^3$ is homomorphism) and then used injectivity of $x\mapsto x^3$ to get $ab=ba$ for all $a,b\in G$.
Is there a non-Abelian group $G$ in which $x\mapsto x^3$ is a homomorphism?