That's fine for some things. E.g. showing an ad for specific hair care products to black people.
Not OK for housing/rental ads, credit/mortgage, etc. Facebook should have known better from the start and never enabled that kind of targeting for those types of ads.