Shock collars are a type of aversive training initially used in the 1960s to train hunting dogs.
The shock administered by an approved shock collar is safe, so while it is certainly enough to get your dog's attention and deter certain behaviors, it won't do any lasting physical harm.