Basically, yes. Religious superstition worked (the director criticizes it - more on that later). People unknowingly deprived Paolino of God's protection, making him guilty of desecrating the shrine, which "unleashed" Mr. Devil.