Yes, you can sue if someone's dog attacks you. This legal action is known as a dog bite lawsuit.