Not necessarily; see Minneapolis Star Tribune Company v. Commissioner, where a special tax on ink and newspaper was held to violate the first amendment.
If the 2nd is treated like the 1st, as it should be, then any special tax targeting only ammunition and/or firearms would be considered a violation of the 2nd amendment.
See the Holding in
Ezell v City of Chicago. The 7th Circuit Court of Appeals stated the closer the activity is to the basic right, the stricter the scrutiny.
Pittman-Robertson.
Is a tax on Hunting and Fishing Equipment provides funds to each state to manage animals and their habitats. It does not single out ammo and is not a "sin" tax, as this is designed to be.