If we have a finite abelian group $G$ given as its invariant factor decomposition $G \cong C_{a_1} \times \dots \times C_{a_n}$ where $a_1 | \dots | a_n$, is the group $C_{a_1} \times \dots \times C_{a_1}$ ($n$ factors) a subgroup of $G$?
I believe it to be, but just want to confirm.