Demons aren't supposed to be able to enter churches, but we saw Meg enter a church when they killed pastor Jim, so obviously the rules can be bent.
But I'm wondering in this instance if, as the town had 'gone to hell' of its own volition, the church was no longer classed as 'consecrated' and...