Question: can wizards learn any spell?
Answer: Yes, you can copy and learn spells from other schools. From PHB 114. Copying a Spell into the Book. When you find a wizard spell of 1st level or higher, you can add it to your spellbook if it is of a level for which you have spell slots and if you can spare the time to decipher and copy it.