Question: can a warlock learn wizard spells?
Answer: They can't, generally. Warlocks don't learn spells from spellbooks, they learn them by leveling and they are granted by your patron. You could multiclass into wizard to learn spells from spellbooks, but that's not a very good option in terms of power.