Yes, this is correct!
They are discriminatory in the sense that they treat some people differently then others, but they are correcting the wrongs in the sense that the people favoured by the affirmative action are discriminated in other ways, so such actions seek to make up for it.