Yes whether you spend a few weeks there or live permanently in Spain,the Department for Work and pensions (DWP) will pay your pension.