Absolutely. OCD and eating disorders are related to each other. Many individuals with eating disorders also have OCD. In fact, a national treatment center recently opened a combined OCD and eating disorder treatment facility.
Many individuals with eating disorders are attempting to control their bodies. In fact, they often think that the only thing in their life over which they can have total control is the amount of food that they consume or digest. There is also a desire to be seen as perfect, with the notion that the thinner you are, the more perfect you look.
OCD is also related to control and perfectionism, people with OCD often try to control their obsessions by doing a ritual perfectly to rid themselves of the effect of the obsession. Therefore, it is very common to see concurrent eating disorder and OCD symptoms. However, they must be diagnosed separately, OCD and an eating disorder should not be diagnosed according to the same symptom. An obsession or compulsion about food cannot be cited to diagnose both disorders.
For example, a woman may restrict her eating to only celery, mustard, and pickles (all noor low-calorie foods). Although this may seem to be a compulsion (repeatedly eating only the same things to prevent the feared consequence of gaining weight), an eating disorder, likely anorexia nervosa, is the proper diagnosis because she is attempting to remain thin.
However, if she were to also wash her food in a ritualized fashion to prevent herself from being contaminated, then that would constitute a diagnosis of OCD because she would be demonstrating obsessions about germs with the compulsive washing.