UID column in Lookup table

We want to switch the code of two rows in a lookup table, for example:

code name
01 A
02 B

code name
02 A
01 B

There is a UID column auto-generated. Will that column be affected if I update the lookup table? Should I switch the UID too?