It depends very specifically on the framing and tone of how it's taught
Teaching this history is absolutely necessary, but not in a way that implies they should be guilty about things they had nothing to do with and weren't alive to see based on their 'race'.