Of course anyone can be racist, but when the white people have nearly all of the economic and political power, and the black people have nearly none, it doesn't matter if black people are racist, because there are no structures to support that.
Or, put another way, black people might call me "cracker" or "white boy" or whatever, and hate me because I'm white, but I can still walk into a bank and get a home loan. I was never red-lined out of living in a neighborhood at first sight.