Short answer: I'm not sure.
Longer answer: test it with a new user. Create some username and some files belonging to that user. Change the uid and gid of the user, log in as that user and see what happens.
I think it will probably mess up access to the files created with the old ids, as essentially this will be a different user to the one that created them.