It depends on what you mean by hurt. The dog gets a small shock, which doesn't feel good, so you could call this hurt. However, the dog doesn't suffer any lasting damage from the invisible fence.
No. They are effective, but if they were in the least dangerous, they'd have never made it into the marketplace,simply because of the potential lawsuits the manufacturer would face.