No. That's local anesthesia. It's called a "nerve block". The anesthetic is injected right next to a nerve. If you imagine pain as starting somewhere, then, "travelling" upstream to your brain, the anesthesia basically interrupts signals from the point where the injection takes place.