Agree but you need to be very mindful for the type of gun.
Any more typical pistol like 9mm, 380, 45ACP won’t do much against a bear. 10mm high penetration rounds (ie not holopoints, hard cast is preferable) is probably the minimum I’d want if I can’t carry a rifle in bear country.
Which would be covered in sex ed already.