Necessity is determined by ends and goals. To accomplish no ends or reach no goals, nothing in particular is needed.
If you do not care to live happily and successfully in this world, you do not need a moral code, or any other kind of knowledge, for that matter.
Hank