Yes, you could simply put a behavior on a relevant unit that expires, leaving a "Modify Player" effect. In that effect you put the upgrades. Also, in case you want this kind of spam (doesn't matter, but if performance you seek), you could put a requirement on that behavior that limits to 1 behavior total, avoiding other same units to spam the Modify Player effect. As I tell still, this is not really needed, as the performance might not even be affected at all.
There are also many other means to do so, depending on what you're willing to use or not.