Vulgar words is considered harsh speech so yes, bad karma.
Best not talk too much, when we talk too much, we end up getting
our minds scattered and can gossip about other people's rights and
wrongs, or talk about how good or bad this person that person is -
this is considered frivolous speech, also bad karma.