There are well documented instances and for example vaccination against smallpox was found a mere 35 years in 1798 after smallpox ridden blankets were intentionally used at the siege of Fort Pitt in 1763. And inoculation predates that so the disease itself was reasonably understood if not in a particularly accurate to reality manner.