No. Take a torus $T^2=\mathbb R^2/\mathbb Z^2$ and consider the self-map induced by the matrix $$\begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$$