Short answer
No. Your articles can live anywhere readable, like a portal, a docs repository or internal documents, and the system indexes them the same way. The only requirement is that the answer is written down somewhere. If it doesn’t exist, there’s nothing to index.
In detail
Publishing vs. indexing
Publishing means having a public portal with search and navigation. Indexing means a system can read your articles to answer with them. You can do the second without the first, and to begin with that’s usually the sensible order. Twenty well-written articles in a shared document already work.
Why to publish them later
Search engines index those articles, and part of any software company’s traffic ends up arriving through its help content. It’s one of the few support investments that also brings in customers. It’s worth doing, just not required to start.
Private articles
You can have sources that only the system uses and that are never published, such as internal procedures, exceptions or details you don’t want public. It’s useful, but decide it on purpose, because a system that mixes internal and public sources without telling them apart will eventually quote something that shouldn’t have come out.