In the 4e Arsenal book, a weapon mod can be given called a "Pilot Upgrade"
"Pilot Upgrade (Smartguns Only): Normal smart systems
are quite smart—hence the name—but not capable of thinking
on their own. For this to occur requires an upgrade to more advanced
hard- and soft ware. Heard the old saying that guns don’t
kill people, people kill people? Not with this modification. A
weapon with a pilot upgrade is equipped with a customized
Pilot program (see p. 213, SR4) and becomes a drone in all
respects (though with the downside of immovability unless you
also install a propulsion system). Pistols become minidrones
(Body 1, Armor 1, Sensor 1), Longarms become small drones
(Body 2, Armor 2, Sensor 1)."
-Quoted from p.152 Arsenal
So technically yes.