Close. Smallpox variolation was considered a vaccine. It was mandated and taken to scotus where they lost.
I stand corrected, yes they did exist. Not like the ones today but did exist.