US Yes. Homemade guns are legal. You may make a gun for your own use provided it is not of a type specially regulated by the Bureau of Alcohol, Tobacco and Firearms without any license. Guns made for sale to others, machine guns, Destructive Devices, short barrel rifles and short barrel shotguns would require either a license or a tax stamp from ATF.