Given that we probably all live in a virtual simulation of some sort, isn't everything code? A more interesting question would be, "what isn't code?"
Sound approaches to knowledge must operate in the opposite direction, drawing insights from observation of phenomena existing in the world.
Assuming that the world is as we deduce it to be, without then proceeding to check that the world behaves in accordance with our deduction, is a failure that delayed the advance of knowledge until the use of the scientific method became widespread.