Yes, and almost any handgun will serve to stop a predatory black bear attack.
They often approach the “prey” carefully and cautiously, giving plenty of opportunity to use a handgun to stop them.
Any bear that openly approaches humans closer then 30 feet is dangerous and should not be tolerated.
They have become acclimated to humans and pose a real danger.
I would never go camping anywhere without a firearm....hell I don’t go to Walmart without one.