The Ontario Immigrant Nominee Program (OINP) is designed to attract skilled workers to Ontario and nominate them for permanent residence in Canada. If you are nominated by the OINP, you are expected to reside and work in Ontario.
However, there are no specific rules that prohibit you from working for an employer located outside Ontario while holding an OINP nomination. Nevertheless, it is important to note that your nomination is based on your intent to settle in Ontario, and your ability to demonstrate that you are committed to settling and integrating into the province's labor market is a key factor in your eligibility for nomination.