Yes, you may also reside in another country, provided that your employer is based in Switzerland and you perform your work in Switzerland (as a cross-border worker).
payroll+ will obtain a cross-border worker permit for you for the duration of your assignment.