Certainly autonomous tracking in case of communications loss is already a thing. But so is wired communications - an easier brute force solution, even if it obviously comes at the expense of payload and range.
Both of these are in _current_ use in the war in Ukraine (not a few years from now - today). The thing is, they make the drones more expensive, and it's a tough balancing act both sides have to deal with - balancing drone expense vs capability.