It is possible that, once you shuffle off this mortal coil, people will remember you for your scholarly contributions to your field.
However, it is also possible that they will remember you for your consistently inappropriate behavior, your thoroughgoing lack of respect for the boundaries of the students you were supposed to be nurturing rather than exploiting.
It is possible that, in the fullness of time, the people in your discipline who were given the academic equivalent of the "Grandpa is just that way" excuse for your behavior will come to the conclusion that there was no good excuse for your behavior, that, rather than speaking no ill of the dead, they will describe your conduct for what it was.
As well, they may start to recognize the complicity of the other "grown-ups" in their field who offered the "Grandpa is just that way" excuse for what it was.
If some of those enablers, still living, are mindful about their legacy within their discipline, they might want to reflect on that and make some amends before they, too, go to the great beyond.