Whether Iran or al Qaeda, it appears that fundamentalists will support secularists if there's a common enemy.
If fundamentalists from Iran would support Iraq, I see no logical reason to assume al Qaeda wouldn't also support Iraq.