Yes! You're absolutely right.
If you're still being haunted by your past, it means that there's something that you need to do that you haven't done or there's a lesson or lessons you need to have learnt from it that you haven't. Until you sort it out, learn the lesson(s), you'll still keep being haunted.
Thanks for sharing.