Although Pyrex bowls and Pyrex dishes are not used that much for baking cakes in you can safely bake a cake in the Pyrex Dish if you so desire to do so.
Pyrex cookware is oven safe so as long as you prepare the cake mixture just right you should have no problem baking cakes in Pyrex dishes.
All Pyrex cookware and bowls and cups can be used to bake cakes and other foods in in a preheated conventional oven at any temperature that a recipe requires.
Just avoid putting the Pyrex directly into a freezer or refrigerator right after baking the foods in them because the shock from going right from hot to cold could shatter the Pyrex.
But you can safely bake cakes or any other recipes in a Pyrex dish without a problem.
Pyrex dishes and bowls can also be microwaved as well which I've done a lot without any problems.