Channel coding is a vital component within digital telecommunications, helping to deal with unwanted factors like noise and enabling the establishment of a more robust communication link. Among the most renowned coding schemes are linear block codes, for which a variety of Decoding methods have been proposed in recent years. This paper demonstrates how a linear block coding problem can be expressed as a Probabilistic Graphical Model (PGM). We then explain how Probabilistic Programming Languages (PPLs), which are tools for solving such PGMs, can be used to decode this type of coding. Employing the Figaro programming language, as a PPL, we have simulated the Decoding of several famous linear block codes and found that the results of our proposed method closely match those of existing techniques. Our approach offers several advantages, such as the flexibility to utilize diverse inference methods, the ability to choose between hard and soft Decoding dynamically, and the implementation of a wide range of coding techniques. PPLs also enable the adjustment of Decoding algorithm parameters and the estimation of Channel conditions, ultimately enhancing the receiver's adaptability to varying Channel conditions. Finally, we discuss the advantages and disadvantages of our proposed method.