No, but a future pope can judge a prior pontiff to be a material heretic.
Kind of like Trump overturning all of Obama’s executive orders