please, before you decide on buying a gun ask yourself, and answer honestly, if you feel 100% confident that you can trust yourself with a gun, to not use it irresponsibly, and to use it to harm yourself or others, with exception to a self defense situation. this is a question that only you can answer and the responsibility to make a mature, thoughtful, honest answer to avoid any future incidents falls directly on you. you must be self responsible to decide if you are OK with a firearm, any issues of legality should come only after you have made an honest answer to yourself.
good luck, and i hope you make the right decision.