Aside from changes to your linker file and Flash memory address range (reflecting the fact that the Flash is built-in to the RT1064: check the address range, as the internal pins are different!), they should be fully compatible.
Note, however, that RT1064 is not going to work if you intend to use Teensyduino with the MKL02 and a Winbond Flash chip (W25Q16JV*IM, W25Q64JV*IM, W25Q128JV*IM), because the proprietary bootloader and bootup machinery in the MKL02 does not work with the built-in Flash in the RT1064, only with the aforementioned external Flash chips.
I do not believe it is possible to connect those boot flash chips to RT1064 the same way they would be to a RT1062.
In other words, if you write your own boot code, and do not rely on Teensyduino, then RT1064 should work for you.
If you do intend to use Teensyduino, then RT1064 will not work for you, because of the internal boot flash.
(This reflects the situation on 2022-01-14. Depending on the chip availability stuff, PJRC.com might modify the MKL02 chip to work on later versions of RT106*; but I think this is unlikely. The next version of Teensy is planned to be based on RT1170, when those chips become available to PJRC.)