Yes, both are equivalent expressions.
One could be said as an order, I mean "don´t smoke!" and the other in a more general way "no smoking" (usually seen in signs in places where there is flamable liquids or flamable chemicals/products. "Don´t smoke" could be an order, sometimes.
But yes, both could be used in certain situations.