I apologize if this question is elementary: Let $A$, $B$, and $A^{\prime}$ be groups such that $A^{\prime}$ is an elementary extension of $A$. Is it true that $A^{\prime}\times B$ is an elementary extension of $A\times B$? Clearly this is true for ultrapowers.