Yes. The joke about him was that his brain wasn’t Y2K compatible (2000 being about when he flaked out)
Harry Potter and the Prisoner of Azkaban involves time travel which works out well for the heroes. Amusingly, it starts out with Hermione using it as a way to take extra classes which has got to be the weirdest reason for time travel in all of literature.
As does the stage play Harry Potter and the Cursed Child.
Though in that case, time travel also caused the problems