To choose the right type of pesticide you have to first accurately and rightly identify the organism for example to identify that which insect of which disease is infecting the plant or who it is infecting.
You are so right! The pest could be a virus, a bacterium, a fungus, a parasitic plant, an insect etc. Weeds which grow all over the garden can also be regarded as pests!