We don’t know if the person did any such thing (bad mouth the company or its products).
However, in the scenario they did, then the company would have grounds to fire them.