Israel is not the church, and the church is not Israel. But Scripture gives the church warrant to learn from Israel. For example, Paul writes in 1 Corinthians 10: Now these things became our examples, to the intent that we should not lust after evil things...
