No. This question conflates several different productions. Barefoot in the Park originated as a 1963 Neil Simon Broadway play, adapted into a 1967 film starring Robert Redford and Jane Fonda (directed by Gene Saks). Richard Thomas—best known as John-Boy Walton on The Waltons—was not involved in either version.
HBO has never produced a version of Barefoot in the Park. The network's original programming began in the 1970s, well after the film's release. It's possible you're thinking of a stage revival or television adaptation featuring Thomas, but no such HBO production exists in the historical record.
Thomas did star in numerous TV movies and miniseries throughout the 1970s and 80s (including The Red Badge of Courage and All Quiet on the Western Front), but Neil Simon's classic comedy isn't among them.