Yes. If you have written proof of an existing no claims bonus from your UK insurer, then this can be transferred to Spain.