Yes, the 2nd amendment says you have the right to bear arms.
The constitution also says everyone has the right to 'LIFE, liberty, and the pursuit of happiness'.
When one of those rights infringes on the other, it's time to choose which one is more important.