Almost every single drug addict and alcoholic has an emotional basis for their addiction. Be it childhood trauma, a predisposition to anxiety/depression, etc.
The fact that these reasons exist doesn't make the addiction any less of an addiction. It's often a reason why rehab centers try to take a holistic approach and not only tackle the addiction, but the surrounding lifestyle choices that further enable the addiction.
It's not "addiction is a masked emotional needs problem" it's, "addiction is often accompanied by emotional needs problems". Subtly different, but different nonetheless.
-I want porn, because I carve intimacy
-I want to smoke, so I can relax or be seen as Y.
-I drink a lot of coffee because I dont have time for Quality Sleep.