Yes copper wire will kill moss and prevent it from growing on your roof.
Be aware though with copper thieves they might come by and try to steal the copper from your house.
Put the copper wire or copper strips you can buy at home improvement stores around where the moss is growing.