Want to determine the number of group homomorphisms $f: \mathbb{Z} \to D_7$. My guess is that there is only $1$ because $0$ is the only element with finite order in $\mathbb{Z}$. Note a cyclic group is completely determined by its action on its generator, $1$ for $\mathbb{Z}$.
Is that reasoning correct?