In general 'no' but for your example 'yes'.
It turns out that homotopy classes of maps to $S^1$ are in correspondence with first cohomology, $H^1(X, \mathbb{Z})$. If this is zero then, by the universal coefficient theorem we must have an exact sequence
$$
0 \rightarrow \text{Ext}(H_0, \mathbb{Z}) \rightarrow H^1(X, \mathbb{Z}) \rightarrow \text{Hom}(H_1(X), \mathbb{Z}) \rightarrow 0
$$
If the middle term is zero, then so is the right hand term, and vice-versa (since $H_0$ is always free).
Now, if $H_1(X)$ is finitely generated, then it's clear that it must be finite in order for the right hand side to vanish. In your example $H_1(X)$ is finitely generated, so we're good.
On the other hand, if $H_1(X) = \mathbb{Q}$, for example, the right hand side would also vanish- and $\mathbb{Q}$ is definitely not finite!