It OK only if the book and or text is not copy right material.
But to use a copy / screen shot of the text from the book most likely would be a copy right infringement.
You could ask for permission from the source of the online book and give credit to the source and author and publisher of the book if granted permission.
You can post the name of the Book and online website ( URL ) location as a source and reference, be sure to give credit.