In practice, it is not possible because you need to register to a local tax office of the worker. Spanish employee -> need to register your company with the Spanish tax office.
Good luck unless you can afford expensive legal services that do this for you. Does not make a sense unless you are planning to hire in quantity (>20 workers).
The alternative is that every remote worker is a subcontractor and takes care of their own taxes.