Yeah you can set that up.
Set the hostname form as the first task in the workflow. It'll still show up even if the computer is already in the database, but the fields will be filled in with the correct info. Then after the image task put the configure task, tick the box to rename the computer and you're done!