No, water & glass is transparent for visible light only, but for IR, it's completely "opaque", all IR from the fish can't penetrate the water, so you are only measure the temperature of the glass.
But you can test?your?pet's temperature by pointing?our infrared thermometers?to your dog.