Yes, if $G$ is an abelian group, its classifying space $BG$ is a topological group whose $\pi _1$ is $G$. You can find details in the answer by Chris Schommer-Priess to the following question on this site:
Georges Elencwajg
- 47.5k
- 14
- 159
- 241