Yes. To a good extent.
...but the government has the ability to manipulate the supply and demand of guns, as with almost every commodity it has the power to regulate, as an externality of a certain policy, which can affect the price.Guns already cost whatever the manufacturer thinks that they can get for them and the government not even attempt to have a say in it.