Yes, you can cook or bake your banana chocolate chip bread in a glass pan, but be wary that the heat distributes differently. To combat this, bake the banana bread at 170C/325F to compensate.