Good thing to legally possess your firearm you need to fill out a Form 4473 before the gun store decides to give it you or not. And the waiting period of up to 72 hours after you head to the shop where they can just decide to not give it you if they think something fishy is going on.
That choice being made by the government after assessing that you're not a lunatic.