Yes, which is how we ultimately get to the word vaccine. "vacca" is latin for cow.
From what I recall about 2% of people who got the procedure died. On the other hand actually catching smallpox had something like a 30% fatality rate, so the procedure became fairly popular.
Iirc, Edward Jenner's smallpox vaccine was based on cowpox, a related but less serious disease.