Not really.No, it did not. The Night of the Long Knives was quick extrajudicial murder. Stalin had show trials and very much sought to cultivate an image of legitimate menace and punishment, unlike Hitler who flat-out said, "I wanted them killed, so I did it."
The Night of the Long Knives stifled the more radical wing of the Nazis until it was unleashed in the East to mollify the military higher ups. Stalin utterly shattered any potential opposition through his purges, something Hitler never managed.
Stalin did show trials. He did want to have the appearance of legality, of a socialist type.
But the essential goal was the same in both cases, murder the zanier scarier part of your organization to appease the moderates, but eliminate any pretense of non socialist legality. In both cases it was made clear that the leader had total power of life or death over everybody, no exception.