Let $G$ be a finite abelian group of order $n=p_1^{a_1}\cdot \cdot \cdot p_k^{a_k}$ and $H$ a subgroup of $G$ of order $m=p_1^{b_1}\cdot \cdot \cdot p_k^{b_k}$.
By Theorem 5 on page 161 of Dummit and Foote's Abstract Algebra, we can write $$G \cong A_1 \times \cdot \cdot \cdot \times A_k$$ where $|A_i|=p_i^{a_i}.$
Question: Is it possible to write $$H \cong B_1\times \cdot \cdot \cdot \times B_k$$ where $|B_i|=p_i^{b_i}$ and $B_i \leq A_i$ for each $i$?