Yes you can do it, and it sounds like you have reached the point where you really want to do it.
Like pp have said, you need to break the habit of being in a particular situation at a particular time when you normally have a drink. Also having something to do with your hands helps. Knitting was good for me as you have to concentrate and you can't just put it down like if you are scrolling on a phone.
I used to have 0% beers so I still had that ritual of sitting down and having a drink, but that has worn off over time, and I'd rather have a bottle of fizzy water these days tbh.
What I will say is, after more than a year of not drinking, that feeling of wanting a drink, that lovely woosh of relaxation as it hits the spot after a shitty day, hasn't gone away. I look at people drinking in beer gardens on a lovely summery day and want to join them in their silly, light headed joy. But, I get distracted and that feeling goes away, or I have a minute to think about how crappy I would feel the next day, how much money I would spend, the rubbish snacking and food choices I'll make when drunk, and come to the conclusion that it's not worth it.
I think that knowing I'll get these feelings, and being able to just let them sit for a minute and then forget them, is a real power.