Resolved Question: Connection between sex and cocaine use ?

Serious Please- Ok, if im used to getting a lot of sex and then i get cut off and then my addiction reared its head again would it make sense that maybe it’s not the addiction to cocaine but to the chemicals that are released during sex and the use of cocaine similarities? As in dopamine,endorphins and adrenaline.
I’m not justifying the illegal use of cocaine, just the body looking for the chemicals that was used to, like a withdraw or something.
Easier said then done, for sex. It’s not important till your not getting any.
I’m not looking for rehab. I’m asking if people know and understand the pleasure center in the brain. Maybe this is too deep.