A lot of this hinges on your moral code, the things you prioritize in your life. Morality and art tend to be the two things at the core of an artist, I think, so it's impossible to separate them oftentimes.
For me, writing is a mix of addressing the issues I'm facing in my life and wanting to make a positive difference in others' lives. The things I believe in, religiously, morally, and otherwise, are the center of my novels. For example, I am a terrible romantic and this shows in all my books, with the triumph of courage and love and friendship. I also, as a conservative religious person, have drawn lines as to what kind of content I'll include in my novels in terms of language, sex, drugs, etc. (This one can be difficult, as you need to reflect real life and stay in the head of someone who isn't you while staying true to those standards in your writing. It's a tough balance. For SAMMI, there have been more cuss words than I have ever used in my life, thanks to the POV.)