Can glass be used when making a compost pile?

I’m making a compost pile and need to know whether or not I can use glass