They have transponders that transmit their identity and location on the most modern, but those depend on being active (for some reason the one in the F-35 was not) and on there being receivers nearby to pick them up. At lower altitudes in remote locations coverage is spotty.
So it's not a guarantee.