Highly improbable
Are aspects of OCD often correlated with the types of personalities that happen to make "good" programmers (obsessing over seemingly-unimportant details, getting caught-up in irrelevant administrivia like coding standards (and why this one is better than that one), constant perfectionism, etc)?
No doubt
But just because some traits happen to appear doesn't mean you should be diagnosed with something
Kinda like the WebMD trope... [enters list of symptoms] ... WebMD: "You may have a cold... or CANCER!!"