So in the PHB it states by (a) finding a person willing to teach you the spell or finding it written and (b) spending the corresponding amount of gold and time a wizard can copy a new spell into their spellbook. (PHB p.114, "Your Spellbook")
It is possible for a wizard to learn every spell a wizard can learn?