People definitely knew that sickness could be spread well before Germ Theory was a thing, corpses were often used in wars as biological weapons to spread plague into enemy forts. But I highly doubt the US military would bother risking infecting themselves with smallpox just to kill a few natives when the natives were doing that job just fine themselves.
https://en.wikipedia.org/wiki/Ward_Churchill