Making Bread Pudding in pressure cooker

Dear Chefs,

Can I make Bread Pudding in Pressure cooker instead of oven? I always make pudding (egg+milk+sugar) in pressure cooker ; I put the mixture in a tight box then keep in little water in pressure cooker and give 10 whistles. My pudding is done . Can I use the same method to make Bread pudding ?

Thanks
Susmita

Many many thanks. You are so good.

Susmita