A gunshot to the head always needs to be treated at a hospital, even if it didn't enter the skull. It's still possible that the person's skull is fractured or that there's bleeding inside the person's brain. Get emergency medical care at a hospital.