I say it depends.
To laugh in Treblinka was ok and probably also necessary.
To laugh in Nurnberg trials would *not* have been ok.
Less dramatic examples can be found. But point is that laugh and
laughter is generally very ok. But you need to pay attention to
situation and context.