You can, make sure your friend was not banned from Adsense and that the site complies with Adsense TOS. No copied content, copyright material, and that you have a privacy policy.
the simple way that you should do it just change the pub id that all ...no need to delete and paste the whole adsense coding...