Yes, provided thery can prove a professional relationship with a foreign company (or companies) for whom they will be working for a minimum period of three months, and the company authorizes the freelancer to work for them from Spain.