Some glass can be put in an oven as long as the glass is oven safe.
Glass such as Pyrex is oven safe and can safely be used to bake food or reheat food in the oven without worry about the glass breaking.
But normal glass is usually not safe to bake with as the high heat temperatures of the oven can crack the glass or break the glass.
Most glass is okay to go into the oven but I would not put any glass in the oven to bake food with unless I knew for sure 100 percent that the glass was oven safe.
If you put non oven safe glass in the oven it can break and cause a mess and it's not worth it.
Only use oven safe glass when baking or cooking food in the oven using glass bake ware.