In general no. It's only illegal (in the US) when done to manipulate certain categories of assets that fall under the regulation of the SEC.