Can you put a glass cup on the flat glass stove tops?

Can I boil water in a glass on the stove top or will will it shatter or will it be fine? I always thought you could do the same ceramics because they are fired at 1300 degree but they break.