Yes, dogs can remember being attacked by another dog. This can cause lasting emotional trauma and may lead to fear or aggression towards other dogs. It's important to seek professional help if your dog has been attacked to help them recover from their trauma.