It doesn’t even have to be bad memories. It can simply be situations that your acting or reacting in ways that you aren’t happy with.
I see, yes, that makes sense. A way to deal with neurotic patterns of any kind. Followed by reflection on the results I can see how that could be very effective.