Can I take a glass baking dish from the fridge and put it in a hot oven?
It would depend on the type of glass.   

If the oven is say 300 F then starting from 40 F (fridge) versus 70 F (room) is not a big difference.

If the glass is oven safe then that 30 F difference should not cause failure.  

70 F to 375 F is a bigger difference than 40 F to 300 F.