Um, duh?
If the realm keeps the religions happy, the religions will do their best to help the realm. If the realm makes the religions angry, the religions wreak havoc.
Yes look at what Alluran did to the Kingdom of Alluran. To be fair though in that case the Head Priest's other character was also a Duke