Sure, it's fiction. Lousy, rotten, bigoted, blasphemous fiction.
Our self-centered secular society needed a guru to express the false doctrine that there is no God. Brown fit the job description and he wrote the Da Vinci Code to express the hopelessness of a society without a loving God.