Yes of course, the pistol will penetrate the bear's skull, if you hit it at the right angle.
But remember, even a 30-06 will bounce off of the water on a pond, if you hit it at a glancing angle.