No. Say $T=\mathbb R/\mathbb Z$ is the torus, and consider the map $f:\mathbb R\to T^2$ given by $f(t)=(t,\pi t)$. The image is dense.
Edit: Someone asks why the image is dense. This is a classical fact, with a fun proof by Fourier analysis.
Notation. As often, we identify a function defined on $\Bbb T^2$ with a doubly periodic function on $\Bbb R^2$.
Define $$\Lambda \phi=\lim_{A\to\infty}\int_{-A}^A\phi(f(t))\,dt,$$for $\phi$ such that the limit exists. If $\phi(t_1,t_2)=1$ then $\Lambda\phi=1$. If $$\phi(t)=e^{int_1+imt_2}$$with $(n,m)\in\Bbb Z^2$ and $(n,m)\ne(0,0)$ then you can work out the integral explicitly and you see that $$\Lambda\phi=0.$$So $$\Lambda\phi=\left(\frac{1}{2\pi}\int_0^{2\pi}\right)^2\phi(t_1,t_2)\,dt_1dt_2$$if $\phi$ is a trigonometric polynomial. Since the trigonometric polynomials are dense in $C(\Bbb T^2)$ this shows that
$\Lambda\phi=\left(\frac{1}{2\pi}\int_0^{2\pi}\right)^2\phi(t_1,t_2)\,dt_1dt_2$ for every $\phi\in C(\Bbb T ^2)$.
And hence the image of $f$ is dense: If otoh $V\ne\emptyset$ is open and $V\cap f(\Bbb R)=\emptyset$ then taking $\phi\ge0$ supported in $V$ gives a contradiction (because then $\Lambda\phi=0$ while $\left(\frac{1}{2\pi}\int_0^{2\pi}\right)^2\phi(t_1,t_2)\,dt_1dt_2>0$).
Also, there is a second part to the question. If H<G is a subgroup that is isomorphic to R as topological groups, is H necessarily closed in G?
– Cros Jul 07 '15 at 23:58