Yes, you can bake pastry cream. The lovely flan patissier is a tart filled with pastry cream and baked.