Right; however, the problem is that ML is generally pretty good at finding underlying patterns in data, so even if you make an algorithm race-blind it can still construct a dummy variable that is effectively race.
Unfortunately, it does this by codifying pre-existant social outcomes which are often not free of bias.