There are 2 basic groups of herbicides:
Selective products kill weeds listed on the label with little or no effect on other plants.
Non-selective will kill the weeds listed on its label but also, can kill any plants it comes in contact with.
Read carefully when selecting an herbicide.