The short answer is no. One difficulty here is that to talk about gravity, one usually needs general relativity. And General relaltivity (GR) has several different notions of mass - the concept of mass in GR is a rather complex and subtle subject.
There is at least one approach that gives some useful answers to this question that avoids the need to talk about the curvature of space-time, a hallmark of GR. This approach considers a cloud of test particles in a perfectly flat space-time of special relativity. The cloud is perturbed by a relativistic flyby of a massive object. Calculating what happens during the flyby requires the techniques of GR. However, after the massive object has completed it's flyby, the space-time is once again flat. And one can usefully ask - how are the velocities of the test particles in the cloud perturbed by the flyby, avoiding all the difficulties of dealing with a curved space-time.
Olson & Guarinio
<<link>> have a paper in which they discusses this situation in some detail.
Potentially of some interest is an old paper by Misner,
https://journals.aps.org/pr/abstract/10.1103/PhysRev.116.1045 that also talks about "active gravitational mass". It appears to come to a similar conclusion, though I don't have the complete paper to read (just the abstract). Misner's paper talks about why the "active gravitational mass" of a system containing a pair of anti-particles doesn't change when the particles annihilate. The explanation that Misner gives is that it's the tension in the wall of the container containing the annihilation products that explains this result.
Misner's paper points out something important that we often mention on physics forum. In GR it is not just "mass" that causes gravity. Rather it is the stress-energy tensor. The stress energy tensor includes effects such as momentum, pressure, and tension (which is just pressure with the opposite sign). So if one is trying to understand the GR results, one will not get a complete and correct understanding of it if by assumes that "mass causes gravity" as it does in Newtonian physics. Unfortunately, the details of understanding exactly what the stress-energy tensor is can be intimidating. At the beginner level, about all I can usefully say is that energy, momentum, and pressure all contribute to the stress-energy tensor, and that we replace the idea that "mass causes gravity" from Newtonian theory with the idea that "the stress-energy tensor" causes gravity in GR. Miser's paper, for instance, just doesn't make sense unless one understands that in GR, tension in the walls of a container can cause gravity, something that isn't true at all in Newtonian physics.