Let $R$ be a commutative ring and let $M$ and $N$ be two $R$-modules. Suppose that for every $R$-module $P$, the modules $Hom_R(M,P)$ and $Hom_R(N,P)$ are isomorphic. Is it true that $M$ and $N$ are isomorphic?