A bad book and good marketing won't work, the same way a good book and bad marketing will also not work. There is no choice in the matter that if you need to write a good book, you also need to have good marketing for it.
With due apologies to Shakespeare, some people are born writers, some people achieve it after a lot of hard work, some people have a writing career thrust upon them. I am in that last group.