The top dimensional cohomology of a connected manifold is non-zero if and only if the manifold is compact, so the answer is "yes" for homology spheres.
Emerton
- 57.6k
- 6
- 209
- 259