Can I just set the run name to the run ID?

Yes. To overwrite the run name with the run ID, use the following code snippet:

import wandb

with wandb.init() as run:
   run.name = run.id
   run.save()