Training your dog to be obedient is something a lot of people do. It might even involve teaching them with a whistle to modify some specific behaviors. Without proper training, a whistle is just a whistle, so you need to get professional training done. If you overuse it, your dog will even start ignoring it. So, there's a limit to its usefulness, but it does work if used correctly and in limitation.