Yes, this is exactly what a dog does, sometimes annoyingly all night, that sharp explosive cry of a dog or, believe it or not, a seal
Much better if the dog is a guard dog, because then you need it to bark when there is intruders
Then there’s another form of bark, that which grows on a tree, and makes excelled burning material, if not a little smoky, for a BBQ.
Ot that the bark of some trees can be used as material for carving, and of others, like the paperbark, to make was seems like paper to write on.
Then there are expressions that start to make you think, concerning this word, such as:
He was a boss that liked to bark orders. I had one like that, almost looked like a dog too. Never could ask someone kindly.
He was barking up the wrong tree. Never seen a dog do this, but many people gave so the literal meaning is to waste your time looking in the wrong place
Then there’s bark or barque, the name of a certain type of boat or masted ship with three or more masts, dating back to sailing days
And then, just top it all off, someone goes and says your barking mad. Probably just after you were barking up the wrong tree, looking for the barking dog on a barque.