Yes, you can use this method to bake an unripe pear (or a ripe one). You may just need to bake them for a little longer.