The question here is: what is the meaning of "endogamy"? The "endo" here refers to "within, not without" and "gamy" is marriage - so endogamy means marrying within the community. And yes, it's true, when interracial marriage is forbidden, it's enforcing endogamy!