Many diseases, psychiatric or other kinds, do have a genetic substance to it, but this does not mean that children would have the illness for sure; it just means that as compared to children of parents who do not have this condition the ones whose parents have it, are more predisposed. The same applies for OCD.