This is likely to be This Perfect Day (1970) by Ira Levin. The story has been previously asked about and successfully answered here.
Per the Wikipedia plot summary, there is a central controlling computer in charge of all economic decisions:
The world is managed by a central computer called UniComp (referred as
just "Uni" in speech) ... They are told where to live, when to eat,
whom to marry, when to reproduce, and for which job they will be
Also, the protagonist (called Chip) attempts to destroy it but is instead invited to join the computer's central programming team:
Chip conceives of a plan—destroy the computer, UniComp, by blowing up
its refrigeration system. He recruits other incurables to join him,
and they make their way to the mainland. Just as they reach UniComp,
one of the incurables—an agent of the programmers—betrays his partners
and leads the rest of group at gunpoint to a secret luxurious
underground city beneath UniComp, where they are met by Wei, one of
the original planners of the Unification. Wei and the other
"programmers" who live in UniComp have arranged this test so that the
most daring and resourceful incurables will make their way to UniComp,
where they, too, will live in luxury as programmers.