Depends on the bears intention I would guess. I would not count on it stopping a determined bear. Changing the mind of one that may be a bit to curious in you I would think it would be effective enough.
For me If I were going into bear country where I would consider a run in with a big bear a real threat I would want a 44mag or bigger with hard cast lead. Something they measure penetration in feet rather then inches.