If you turn yourself in, the police will investigate your situation. First, you don't know yourself, and you are also a victim; Second, since we know that this is illegal, we should testify. This can reduce your criminal responsibility; Third, you have a good attitude towards admitting mistakes. The lightest thing is to educate you for a few days. If it is serious, it depends on how much you earn illegally.
If you don't turn yourself in, the police will find you through your friend's criminal chain. It is unlikely that the sentence will be reduced, and it is possible to increase the sentence.