"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." -- PHB, 114
"A cantrip's spell level is 0." --PHB, 201
There is, however, nothing stopping you from...