You have to be aware of what your saying and how it reflects on you, on a basic level YES you have free speech, you have the right to make comments and jokes.
BUT , you should know how this reflects upon you. I KNOW that I've made and will continue to make light jokes about race and gender and such. However I try to keep in mind that no matter how much I deny my agreement with the joke/jest i'm still SAYING IT, and that means it's still going to reflect upon me. So in short, I don't make a joke if I don't understand what I'm actually saying. I try my best to avoid using the "oh I didn't really mean it, you know im just mocking that mentality right?" response, because I think on some level people use that as a shield. Think to anyone whose ever said they've done something "ironically". Say, ironically watching a bad movie. The movie is still being viewed, and the producers are still getting a cut of those profits, and chances are you actually like the film, why else would you pay money to rent/see it?
IT all goes back to a persons personal views. I just think you get more mileage out of a joke if it's honest. I generally find a better joke that I don't have to play off as ironic, and I prefer it that way.