The short answer is yes. I'm no expert by any means, but I think the simplest form of safety is cams and ramps on the gun-tracking mechanism that simply won't permit it to be pointed at any part of its airframe. And of course it's a simple matter to put more sophisticated electrical interrupters in place. In any case, I don't think it was possible for a WWII turret to shoot itself down...