If you mean to stop them barking they are ok in the short term but most dogs get used to them and take no notice before long. It might give you a chance to correct the bad behaviour though, but you have to put the work in and do some training.
They are not a substitute for training.