A group $G$ is LERF if every finitely generated subgroup of G is closed in the profinite topology of $G$.
Let $G$ be LERF group, and let $H$ be a subgroup of $G$. Is $H$ necessarily closed? (I'm not assuming that $H$ is finitely generated).
What if we assume that $G$ itself is finitely generated, or even finitely presented?
A group $G$ is called $ERF$ if every subgroup of $G$ is closed in the profinite ropology of $G$.
You're are asking if $LERF \Rightarrow ERF$, if I'm understanding you correctly. However this is not true, see e.g. https://mathoverflow.net/questions/220069/profinite-topology-on-free-metabelian-group.
Moreover see Robinson, Russo, Vincenzi "On groups whose subgroups are closed in the profinite topology", which studies the property $ERF$ more thoroughly.