I can't entirely agree with you on this bro... Because when it comes to success, regardless of what you're into and what you're pursuing, being successful in those things require certain habits. And engaging in those habits makes it possible for you to succeed. As to become successful in that which you’re after requires the habit of it.
E.g., A footballer needs to engage in the habits of training and doing what is required to be successful in football—likewise writing or any other thing. So, with habits, I think it causes success, although not entirely because we know luck plays a major role; it's a big deal...