Yes. If you have to euthanize a dog, a gunshot is an accepted way to do so.
Dogs are typically killed by overdose of a sedative, but if you can't get to a vet and there's no other way, a gunshot is a humane way to kill a dogprovided you can shoot very precisely.
This is a scan of the inside of a dog's head.