That is certainly why Iran would not provide IS with nuclear capability.
It's a right mess. Sunni Iraqi Gov is using the Iraqi Shia Militia, funded by Iran, to fight IS. Shia Iran is working with Sunni Saudi Arabia to fight IS. Sunni Turkey and Jordan wait. Israel poised to strike.