No. It isn't.
They don't get physically ill if they stop gambling to the point of needing hospitalization for the extreme pain it causes.
They don't have to gamble even when they don't want to in order to stave off getting very sick.
medications that are addictive for real vs really wanting to play a game and feeling the dopamine urge....
They aren't the same thing at all, because one of them is something you want to do, and one of them is something you maybe don't want to do but you need to do it because the consequences of not doing it are so extreme.