You can, if the activities of your company will not physically occur in Spain.
A company administrator can be a person who does not have a Spanish residence permit, provided that there will be no need for hiring staff to conduct the company and the company will be subcontracted, through partners or employee / s – freelancer.