No, discrimination is discrimination. Racism is the assumption of a person's "race" - for most people that equates to skin colour and other physical properties but for some it goes deeper - being related to that person's character and abilities.
I live in Sweden but I'm not allowed to vote in national elections while I look just as Scandinavian as your average Sven. There are hundreds of thousands of people living in Sweden who do not look like Sven at all but are allowed to vote. Is Sweden being racist against me? No, they're just discriminating in who is allowed to vote, only those with Swedish nationality have that right. I´m not a Swede, hence I do not get to vote. This is a form of discrimination, but discrimination does not equate "bad" - I would not advice any country to allow foreign nationals to vote in their national elections.