Do fish lay eggs on the glass of an aquarium?

I have noticed little clusters of what look like eggs on the glass of my tropical fish tank. The best way to describe them is that they look like grains of sugar. Are these likely to be fish eggs, I have heard cat fish sometimes lay their eggs this way