You can of course store any data you wish in the SPIFI flash device.
However you cannot program the device from code executing on the same flash device. If you wish to do this you would need to copy your flash programming code into RAM and execute from there until the programming operation completes.
Yours,
LPCXpresso-Support