There is a result in Cartan Eilenberg (XII 6.4) that says that if $G$ is a finite group and $D$ a divisible abelian group with trivial $G$-action then for any $G$-module $M$ the cup product $$\widehat{H}^{r-1}(G,Hom(M,D)) \times \widehat{H}^{-r}(G,M) \longrightarrow \widehat{H}^{-1}(G,D)$$ induces an isomorphism $$\widehat{H}^{r-1}(G,Hom(M,D)) \longrightarrow Hom(\widehat{H}^{-r}(G,M),D)$$ for all $r \in \mathbb{Z}$
I wanted to know if this result would hold for non-Tate cohomology and homology groups, i.e., if instead of having a finite group $G$, we used an arbitrary group $G$ and instead of using cup products we used cap products, would the result still hold for all $r \in \mathbb{Z}$ or maybe for some $r$?
Thank you