As far as plot goes, no. Also as far as characters go, no. Midnight Mass is an entirely original story that Flanagan cooked up, whereas The Haunting of Hill House was based on a Shirley Jackson novel of the same name, and The Haunting of Bly Manor was based on Henry James' novella The Turn of the Screw.