Given an abelian group , and a natural number , does there exist a space X such that ?

Where is the n-dimensional homology group of X.

I know that for every group , there is a 2-dimensional cell complex such that the fundamental group of is isomorphic to .

Can we generalize this result to the homology groups, when is abelian? If yes, how do you prove this