If you had no idea and they sent it to you, no your couldn't.

The second you don't give it to the authorities and tell them everything about it, yes you could go to jail.

So you can't if you were to give the substance directly to the cops.