All scripture [is] given by inspiration of God. The Revised Version is much better: "Every Scripture inspired of God is also profitable", etc. Whether it is depends on its inspiration. For instance, the Apocrypha is called Scripture, but is not inspired.
For doctrine. For teaching.