Obtaining knowledge is good if we follow the counsel of God. But the Prophet Nephi warned us that that God’s Counsel is greater than man’s wisdom:
O that cunning plan of the evil one! O the vainness, and the frailties, and the foolishness of men! When they are learned they think they are wise, and they hearken not unto the counsel of God, for they set it aside, supposing they know of themselves, wherefore, their wisdom is foolishness and it profiteth them not. And they shall perish. But to be learned is good if they hearken unto the counsels of God
The things we learn in school or elsewhere should always be measured against the yardstick of scripture.
Source: 2 Nephi 9:28-29; The Book of Mormon: Another Testament of Jesus Christ