You can legally own a pistol or long gun at 18. A Federal Firearms Licensed dealer cannot sell you a pistol at 18, but it is perfectly legal to conduct a private party transaction to purchase the pistol at 18.
Being that you are talking about home defense, I, like those above me, suggest a...