We know from historical research that dogs have excellent hearing and that they are able to hear high-frequency sounds such as those that emanate from these devices.
It will certainly do your dog no harm but with some dogs, it may cause them to become nervous or distressed simply because it is an alien noise to them.