Well, being a comedian is all about the content that you make. While some people consider saying controversial things as an easy pathway to success, it is not true in all cases. As a comedian, you can surely talk about controversial issues but do it in a way so as to avoid hurting the feelings of others.
Moreover, try to put in your humor in controversial statements without adopting a bias side as that could become a hindrance in your career as a comedian. All in all, stay true to yourself and don’t go out of the line for quick fame. Instead, focus on the quality of your content.