Sure, you can offer ebooks provided that you lawfully individual the rights on the ebook(s) you’re promoting. You might possibly produce the ebook you or outsource some or all of it.
I suggest you examine the pros https://www.etsy.com/listing/1767065007/shopify-guide-shopify-ebook-woocommerce