Is refusing terrorists funerals a deterrent?

Muslim leaders say they will not conduct burials for terrorists – but could this prevent attacks?