It would take an enormous amount of energy. If that could be solved…yes, but only to the past. You can’t travel to the future. When you travel to the past the past becomes the present and everything you do impacts THAT present’s future which was your old present.
Also…if you get close enough to a black hole you experience time dilation. Your present freezes or becomes so slow you can’t tell time is moving at all. When you return, if you survive….you are still in YOUR present but everyone else has aged and is in THEIR future
I think that covers it