IMHO, it would be prudent to be equipped with firearms and a generous supply of ammo, for both hunting and for self defence.

However as others have already posted, in MOST survival situations other supplies are of more use.
Food, water, first aid supplies, map and compass, footwear, blankets, spare clothing and other supplies are likely to be of more use.
Unless you are in a war zone of course.

I would suggest that where legal, a pistol should be carried, and spare handguns plus rifles or shotguns or preferably both should be secured at home and carried when needed.
A choice of weapons gives redundancy in case of breakdown

I have my doubts about the viability of any gun involving black powder or muzzle loading, both can be interesting challenges whilst times are normal, but for emergencies I would have more faith in a large stock of modern cartridges.

I have read factual accounts from survivors of a recent conflict in eastern Europe, all refer to the scarcity of ammunition.

The more sensible and believable doomer novels also refer to ammunition becoming scarce.

Here in the UK a shotgun is relatively easy to lawfully obtain, other firearms are much more tightly controlled.
I have fired a handgun on a range, but lawful private possession of such a weapon is almost unknown.