As a human being, you are entitled to have an opinion about everything you encounter in life, and joke or be upset about it–or both.
As a writer, you also have a right express your opinions in writing, and you not only can disclose your own, you can present thoughts and beliefs which are totally opposite. This is why you invent characters, which can carry out their own views on the world you make them inhabit. You can make them prejudiced, sexist, feminist, racist, human rights activists, law-abiding citizens (who can still be racist and sexist), and career criminals. You and only you own the world you are creating, whether it is a high-fantasy imaginary one or a meticulously crafted reflection of the real life.
No matter what you choose to write about–happines, misery, affluence, hunger, religious fanatism or progressive thinking, sex, drugs, rock-n-roll, etc.–go for it. Do not try to play it safe–it will be instantly noticeable and will come through like a watered-down attempt to play both sides (oh, I want to address a serious and unpleasant issue, or feel like a risky joke will go well with this character, but I do not want to upset my readers) and will make your writing bland and boring.
You should remember, though, that as human beings, your readers also have a right to have an opinion about what they read and your words will be judged and commented upon.
Guess what: you cannot please everyone. If your readers are upset by your writing, they are not your readers. If someone flips because you used an (insert-a-letter)-word, that person should stick to reading newspaper headlines and cereal boxes (milk cartons might be too unsettling).
Go ahead with your story and do everything to make it work. Self-censorship is one of the worst methods of self-editing.
Best of luck.