I have a gun. Actually, I have two.
I grew up around guns. I was at the shooting range by age 5. And could shoot properly and quite well by age 8. I could recite you gun safety and responsibility backwards and forwards by age 4.
Until I was 18, I had NO idea where the guns were kept in the house. The guns and bullets were kept separately. In separate safes.
I have followed the same protocol with which I grew up. I keep my guns in one safe. I keep my bullets in another. ALWAYS. I am NEVER lazy or lax about this - despite the fact that we have no kids yet.
I was taught that there is NO such thing as an accident with a gun. Only irresponsible use. And I think this is 100% true. A gun will not harm you, unless you use it in an ignorant way or in a way that lacks responsibility.
I have never had an accident, no one in my family has had an accident, and no responsible gun owner that I know has ever had an accident.
But, this takes vigilance. So, when I come home from the gun range (it's a good stress release, lol), if I'm tired or worn out or want a shower or am hungry - doesn't matter. I ALWAYS put the guns away in the safe, the bullets in the other safe. That is the first thing I do, and I've never forgotten.
I can't stress that enough. Guns can be dangerous in the wrong hands.
So, I would DEFINITELY take lessons first before purchasing a gun. First, it's pointless to own a gun if you don't know how to shoot a target. Second, guns require proper handling, storage, and cleaning. Improper use can result in accidents ... so definitely take the lessons first.
Otherwise, you sound like you're being smart about this. So, go to the shooting range, try out a few guns, and see how it feels. If you don't like it, don't feel comfortable - don't get one. If you're OK with it - get one. Remember, a gun, alone, can't hurt you. Only you can hurt yourself or another with the way you use it. So, if you're safe about it - there's no danger.
In fact, more people and kids get stabbed with knives in the kitchen than harmed with a gun. Statistically speaking, of course.