Only in some markets and in some jurisdictions and some of the time.
Eg until fairly recently 'insider trading' in commodities wasn't anything you were punished for in the US.