Yes, there is endless case law and legislation around this type of trick. It's usually considered securities fraud. https://en.wikipedia.org/wiki/Pump_and_dump
Obviously it's not strictly illegal to purchase stock and then say you did, but it doesn't make sense that you would need that clarified.