Yes, pets can help with obsessive-compulsive disorder by providing companionship, reducing stress and anxiety, and promoting a sense of routine and responsibility. The presence of a pet can also help distract individuals from obsessive thoughts and compulsive behaviors. However, it is important to note that while pets can be beneficial for some individuals with OCD, they should not be considered a substitute for professional treatment.