OCD is a type of anxiety disorder. For most people, generalized anxiety will not include compulsions or behaviors that the person feels like they need to do to reduce their anxious thoughts or to prevent fears from coming true. However, this is true for people with OCD.