I once gave up on making a relish plate for church after the second try and ended up putting it all in the refrigerator for my family to eat. I kept thinking I had touched an olive, then a pickle. We stopped at the store to buy something packaged for the potluck. I had a rule about not touching other people's food. So if I did, it was contaminated.
Most people do have rules for good hygiene in the kitchen.
But if they break a rule, they can logically decide if it was a major rule, like not frosting a cake and taking it to a church function after the cat took a bite out of it. For many of us with OCD, there are no minor rules. I still think it is fine to have kitchen rules. But be prepared for the time when you break the rules. I think a good prevention of the inevitable obsessions when rules are broken is to plan ahead.