I think I've read about it being possible to go visit an execution in some prisons in the US before that, but you had to go through a security procedure.
What happens now is that it is broadcast live on TV, like in the movie Starship Troopers — which was satire!.