Yes โ this reversal is called Simpson's Paradox
A treatment can look better overall yet look worse inside every single subgroup, simply because the groups were unevenly sized. The combined numbers point one way; the broken-out numbers point the other. Before you trust a headline total, ask whether the underlying groups were lumped together in a way that hides the real pattern.