Can glass go in the oven?

cuz last night i was cooking.
and when it was done.
i took the food out.
then but the dish in the sink.
then i turned on the water.
then ***BOOOOOOM***
lidhsflis psttttttt *glass sounds*
bang bang bang *pop pop pop*
then the glass exploded into billions of pieces!
i freaked out!
i was like uh-oh someones gonna kill me.
anywho i cleaned it up and hid the evidance.
i should of let the dish cool first?
or not have used glass all together?