It's not quite clear based on the information you have provided. If the company has any clients / customers in Canada, the answer is generally no, it's not allowed. Generally speaking, it's only legal if the company does no business in Canada / does not sell to Canadians.