Hi @Angletown,
I hope you are doing great.
The K32W and KW31, in this case, are completely different.
However, you could disable the SWD pins, you could create a routine that selects a different pin functionality in those pins.
Remember, it will be a problem to connect with the debugger after you have disabled the pins.
I am not sure if you want to protect your memory flash, but you could look at the next AN.
https://www.nxp.com/docs/en/application-note/AN4507.pdf
Regards,
Mario