Yes, but only if done right.
Dog whistles are incredible tools that you can use to train sharp hunters and stern police dogs. But, if you don't know how to use it properly, you'll only end up annoying your dog. If you still want to utilize the power of a dog whistle, then educate yourself first. There are plenty of tutorials and guides available on the Internet regarding these whistles, as well as other tools like dog training leashes.