No, it's definitely not okay.
That is a behavior that is perpetuated by the worse racist ideas in our society.
It's funny that I'm seeing this thread. My breh is going through some shyt and I literally JUST text him, "Breh, I love you. I guarantee we are going to get through the trials and tribulations that we are going through. Stay strong."
When I see other black men in the street and they look like they are going through it...I try to prepare myself for a potential hostility that comes from it and remember not to reciprocate that hostility if I'm in a healthy emotional state.
I hate when I get into conflict with another breh and we both are on some rah rah shyt. Afterwards, after the adrenaline rush and initial ego spike, I feel remorseful.