OCD can cause depression and anxiety. Think about it, you have an intrusive thought, invading your mind, that you can't get rid of nor control. That's enough to make anyone feel defeated, stressed and nervous. In fact, those are understatements. If your obsessive thoughts are accompanied by compulsions, then you basically have nothing else to focus on in your life but this debilitating disease.
Sometimes its difficult to know which came first, the chicken or the egg, the OCD or the feelings it produces. At the end of the day, it doesn't even matter because they feed off each other in a vicious cycle. OCD makes you depressed and anxious and depression and anxiety causes you to OCD.
So yes. OCD can totally affect your emotions. You have to treat it all as one disorder.