Yes, general relativity allows for closed timelike curves
Kurt Gödel showed in 1949 that Einstein's equations permit paths through spacetime that loop back to their starting point. While practically impossible with current technology, time travel is not forbidden by physics.