No โ each fungus targets one ant species
Ophiocordyceps is not one fungus but a whole family, and each species is tuned to a single kind of ant. The chemicals that hijack one species often just kill another without ever steering it, which is why a given fungus and its ant tend to be found together.