Yes, you can. It is entirely possible and within the law.
Ask A Question | Learn more about Dominica
Can I establish a remote business in Dominica without residency?
Can I establish a totally remote company in Dominica and hire remote workers from other countries if I pay the taxes there without a residency visa?