Yes, this is perfectly fine. But I suspect it assumes someone isn’t kicking people repeatedly right at the end a large? amount of times.
I mean, rules are rules…within reason. If blizz starts to detect someone is doing something stupid (like bailing on a lot of m+ dungeons or in this case, kicking lots and lots of people right before the last boss of a dungeon), I suspect they’ll bring out the “gameplay sabotage” excuse once more.
As to whether the OP was hit by someone who’s doing it heaps and heaps of times for blizz to even notice…well that’s a different story.