Depends on how you look at it as far as 'luck' versus 'skill' comes in, but you were the one holding the gun when it fired and 'luckily' hit the target...
My story starts out in the AZ desert with family and friends for a rifle and pistol shoot. We had brough along most of the contents of our safes and loaned and borrowed weapons back and forth for fun throughout the day. My turn comes with a friends brand-new Taurus PT92 (a Beretta 92f clone, IIRC) and my brother is just finishing his glass-bottled iced-tea. He says, "shoot it on the wing!" - with the backstop of a vast mountainside, I figured it was a safe attempt. Second shot out of the .40 S&W gun hit the bottle and shattered it into a million pieces. It was a good hit. Some might say it was a lucky hit.
When we get together during similar circumstances, that shot still comes up in conversation.
Second lucky shot was with a borrowed single-shot Stevens .410/.22 during dove season (why is it we're always better shots with borrowed guns?...). Friends were nearby and passed on a shot at a dove flying at maximum deflection on a passing shot - they figured it was out of range of their 12ga's. I pulled up the single-shot .410, thumbed back the exposed hammer, sighted long and hard, and let fly. The dove fell like a ton of bricks and landed with a thud. Did I mention this was my last .410 shell and made my limit for the day? My Father-in-law asks me why I'd ever take that long shot and my reply was; "I guess I didn't know any better."
He regards me as a crack shot to this day (don't fill him in on my luck, okay?). Stay lucky,