Can I deduct the books & study material if I'm persuing self education; what about on subjects related to a nonprofit endevour

I want to pursue self-education and the subjects of study relate to a nonprofit endeavour.