Should actors perform roles based on their race and gender or it doesn't matter?

I heard that the original Cleveland Brown from Family Guy and the Cleveland show quiet because he believed that because Cleveland is black, then a black person should perform his voice. That's where my question came from. Is he right or wrong?
Should actors perform roles based on their race and gender or it doesn't matter?
Post Opinion