Yow! If that was really your first time ever shooting and it was really at 50 feet (quite a distance for a handgun), I'd say you did an amazing job.
Shooting a handgun accurately is an easy thing to describe, but difficult for most to actually execute without a lot of practice. It's all about keeping your sites on target while pressing that trigger back in a smooth, gradual fashion so that when the trigger finally breaks and fires the round, it is a surprise to you. That's the only way to not influence your shot by jerking or flinching. If you are thinking, "Ok... fire... now!" then you have a bad habit. There are many more details to add to a proper trigger pull, but I feel this is the most important.
Again, you are off to a great start if the distance you described was accurate. So just practice, practice, practice. Also, if you don't have a gun of your own at home, try some dry firing at the range before you actually load a magazine. Ideally, your front site should not move when the trigger breaks.