Yes, you can. I did work for a US based company as an international student in Canada. This was related to my phd research. Please consult your international student office for proper guidance as I remember I had to confirm some things then to ensure I was doing the right thing. I think it has to be 20 hours max pw.