Yes it is. And if you're going to wait till he (or she) is upon you, bring a couple friends with spray.
I carry my .500 Linebaugh revolver when in bear country. I practice often and compete in cowboy action shooting and will not hesitate.