You can, even if you shouldn't, but that's not what is going on here.
Blocking commercial acts that financially benefit an individual who was a member of an armed group while that armed group engaged in a war with your country, or a friendly one, or (in your countries estimation) terrorist acts against a civilian population is both not inherently racist and absolutely routine for countries to do.