No. Stephen King did not appear in the film. He wrote the novella Rita Hayworth and the Shawshank Redemption (1982), which the film adapts.