If you are referring to replacing the NAND memory chip on the logic board, some suppliers (VIPProgrammer I believe) offer to program it in advance with your device's serial number. This will allow your device to work properly but you obviously lose all of the data you had originally. Hopefully you have a full backup in iTunes or iCloud.
Replacing the NAND requires micro-soldering with good quality tools and plenty of experience.