There is no doubt that art in general is viewed by a lot of people as a category in which a person is allowed to express themselves freely. However, there are several pitfalls which should be taken into account. To begin with, a lot of that depends on the country, the city and the institution in which you are showing your work. In other words, your work may not be received well at one museum but may have a huge success at another. That is the reason why it is always worth trying. You never know when someone is going to be interested in what you are doing.
Another important aspect to mention in this respect is self-censorship. What it means is that you have your own boundaries which you do not feel like crossing. For instance, you might want your art to be more provocative but you are afraid that it might offend someone. That is the reason why there is always some amount of works that remain in the shadows.