Yes you can, but you will need to use an intermediate value to avoid a collision. Or you can temporarily remove the index on the table while you change the ids.
Afterwards you need to edit and save a smilie in the Admin CP to prompt a rebuild of the cache:
Admin CP -> Home -> Smilies