Yes. If you have one of our plans that includes the Crawler, you can use this to index non-HTML documents.
You can find out how to do this in our Documentation here.
If you have long documents, we also recommend splitting the content into smaller chunks where possible. You could, for example, split your text into paragraphs and index those independently.