Is depression related to OCD?

Hello guys, it’s the first time I’m posting here (I’m French so sorry if there are some mistakes)
Is OCD related to depression? I’ve been diagnosed from OCD but I have the feeling that there is more going on
And if it can be, does medication help?
I’m also struggling with intrusive thoughts, my therapist adviced me to take medication but I’m scared to be dependant, what are your experiences?
I know that life can be difficult with OCD so I wish you the best
Thank you and have a nice day!