F1 visa student can work only inside school or the job school approved out side school. if this is a one time only salary check, i don't think matter. But If you will continue work at same co., it is illegal to do so. you should not to work or some other way you should find out.