Of course, but be ready for a long haul! The ironic advice I always hear is to teach them to bark…on command. Then you can teach them to be silent on command. I admit I never followed through with that. When my chihuahua’s barking gets overly annoying, I work on having her look at me and do the basic tricks she knows (sit, stay, paw), offering treats for each success. The treats distract her until the cause of her barking is past.
Excessive barking can also be a cause of a bored dog. Maybe more exercise would help tire her out a little? Good luck!