Maybe you shouldn’t. It depends.
Ask yourself: What do you really want?
If your dream is to obtain a six figure advance from a prestigious publisher with a mega advertising budget, translations in sixteen languages and a Hollywood film, your first choice should definitely not be an ebook. Take the time and make the effort to get the best agent you can find and have that agent pitch the book to publishers until your dream becomes reality. Or until the reality of publishing helps you to redefine your goals.
But if your dream is simply to make your book available to anyone in the world who wants to read it, easily, and at an affordable price, an ebook might be an option worth exploring.
There are many kinds of ebooks: novels, memoirs, essays, short stories, how to ebooks, ebooks to establish your brand or promote your business, ebooks in every genre imaginable and for every age and taste.
It is extremely easy these days to publish an ebook with Amazon KDP.
If your dream is compatible with the reality of an ebook, then by all means, give it a try.
Just remember, however, that the quality control is up to you.
One word of advice. Write the best book you can, then: take a moment. Wait. Have it edited. Think about the description, the categories, the release. Will you publish yourself or through a small press? Will there also be a paperback? Who are your readers? How will you reach them? What about reviews? How does this ebook fit in with the rest of your goals?
Take some time. Think about the questions. Then check again. Is the ebook still the right solution for you?