Characters are meant to be living entities in and of themselves. They can act in ways both better and worse than the writer crafting their stories.
A writer may not be for thievery but may write about a thief, and the same can be said about any sort of immoral or deviant behavior. The behavior of characters does not necessarily reflect the author’s own morality. We live in a world where there are evil, careless, and self-centered people, and people simply have bad days and do things they regret.
My books are generally “clean” and family oriented because that is my target audience. I also don’t believe in having over the top content for the sake of shock and awe. With that said, I do see adding contented for the sake of being true to the character that might be unsavory.
As a writer and an artist, I don’t believe in censorship and stand firm that the author should be true to the character’s personality. That may even include things that make the author or audience uncomfortable. That said, the creator should also place some boundaries, there are certain things that are best left out of entertainment. If there is a gory death, it is best to left it to the imagination instead, or implying it rather than directly giving an overly detailed description. I have read scenes in books or movie descriptions out of curiosity that were stomach churning, the author should limit him or herself because there are certain things that are unnecessary.
Now, with that painfully obvious disclaimer out of the way, author’s including immoral behavior in a story doesn’t reflect the writer’s personal beliefs, at least not in a well-crafted storyline. Within the context of being sensitive to our audience, a writer is obligated to be true to the character.