That is not an important point, but a decisive, fundamental one. You also have to bear in mind that, like it or not, as a writer you are evoking the original role that began with Sophocles, Homer, that is, as a thinker, for which it is recommended that some of these readings be in fact philosophy.
However, here I must make a clarification, it is not about studying or reading philosophy to preach, but due to the premise or idea that is always behind a work. For example, one can say that the idea of his novel is the eternal fight of good against evil, like Star Wars or Dune, since it is fashionable, but if the author does not know philosophy, or life itself in short, If he does not know people and how they think or act, his story will only be a little battle of spaceships, it will lack substance. Because, although we know that Star Wars was a space rehash of the Lord of the Rings, the analogies are unquestionable, the elephants and their analogs in the AT-ATs, the empire just an evolution of the army of Sauron, etc., anyway it has the mysticism of force, a certain criticism of the weakness of democracies, a much more evident criticism of fanatical militarisms.
On the other hand, anyway the author has an opinion column or editorial part; the author, whoever the narrator he chooses, and although it is clear that the epistolary and well-intentioned but rather naive style of yesteryear is no longer accepted (that that was to preach in a blatant way), by the very way in which he designs the events of story, whether he wants to or does not he gives his opinion. Therefore, since he will do such a thing, it is appreciated that he knows what he is talking about, that at all times he is a conscious sender of the message that he is delivering, if possible it is even appreciated that he knows symbology of the image or Semiotic. The author cannot say, "Ah, I had no idea that I was communicating that."
Another important point is knowing the humor. The tricky thing about humor is that it is based on a shared wisdom and in fact it works only if his analogies find a reference that the public knows. That already begins to delimit the field in which a writer moves, for example I can say, regarding a character that does not expect anything good: "Maria Antonieta had more future" in clear allusion to the French queen who went through the guillotine. As for the author, it is a mixture of a joke, black humor and analogy, but I also know that not everyone knows who Maria Antonieta was and therefore I am accepting that those who do not know will not understand it and will be left out of that field. Because you as an author also speak to a type of reader, they are decisions that you make, in my case I am speaking to a type of reader who has a certain cultural baggage. You should not fear this, your readers are the ones who will accompany you on this kind of boat or journey.