Yes, you can "avoid" while being mindful. Being mindful means paying full attention to the here and now. Memories do not fit into this scenario. In fact, using mindfulness is a great way to not allow the bad memories from taking over your thinking and thus trapping you in the past.