Yup. That's pretty much the definition of the word discrimination.
Doesn't necessarily mean it's a bad thing. I mean, separate men's and women's bathrooms are discrimination, but I don't think anyone wants to get rid of those anytime soon. (Ok, well some people do, but it's probably best not to listen to them...)treatment or consideration of, or making a distinction in favor of or against, a person or thing based on the group, class, or category to which that person or thing belongs rather than on individual merit.