To expand on Steve D's comment, the answer is indeed yes for finite abelian groups. The following is a simplified version of an earlier proof (rendering some of the below comments obsolete).
Proof. We proceed by (strong) induction on $|G|$. Let $G$ and $H$ be finite abelian groups for which there exists a bijection $f:G \to H$ that preserves subgroups.
Suppose $G=A \oplus B$, where $A$ and $B$ are both proper subgroups of $G$. By induction, $A \cong f(A)$ and $B \cong f(B)$. Since $A \cap B=\{0\}$, we conclude that $f(A) \cap f(B)=\{f(0)\}$. Since $f$ preserves subgroups, $f(A)$ and $f(B)$ are both subgroups of $H$, whose interection is the zero element of $H$. Moreover, since $|f(A)||f(B)|= |H|$, it follows that $H = f(A) \oplus f(B) \cong A \oplus B \cong G$. Therefore, we are done unless $G=\mathbb Z / p^k \mathbb Z$. However, by interchanging the roles of $G$ and $H$ we conclude that $H$ is also equal to $\mathbb Z / p^k \mathbb Z$.