Yes, Portugal started issuing special Digital Nomad Visas for non-EU remote workers and freelancers in October 2022. The requirement is to earn at least €3,480 per month. It takes about 90 days to obtain this visa.
The D8 visa is one of the long-term visa types to Portugal for work and investigation.