in theory, yes. Not sure how gateshark codes would translate to save data, so the bigger issue would be to find the values in the save data. Not a difficult problem, you'd just need 2 saves that are mostly identical(ie the same save just with and without the closest modification) and then compare them to find where the differences are. then copy the data from the empty closet save over into the save you want to edit at the same location in that file.
NTR wise, the code that unlocked the closet should be able to reset it, you'd need to talk with the code creator, but it should be as simple as changing the values in the code, from my guess it would be the last two values in the first line of the gateshark code.