Lost me when I realized the headline conflates “UX” with “UI.”
Sketch doesn’t pretend to help us with user-centric design strategy, user research, content design (e.g. copywriting), or information architecture challenges. Of course it’s not a UX tool.
It is, however, UI design tool. And if you prefer to design UI’s with code, go ahead if that works for you.