Let $M$ be a compact Riemann manifold without boundary. Please is this true that each homotopy class of closed curves contains a geodesic?