Yes, it is possible!
When you forgive, you might find that you don't hold grudges about what was hurting you, and you might feel free from what happened. That doesn't mean you have to forget. Sometimes it hurts too much. :( If you want to keep your distance to prevent getting hurt again for the same reasons, you have the right to do so!