Yes, cats can hear a dog whistle because, like dogs, they’re also able to hear ultrasonic sounds up to 79 kHZ, and dog whistles have a frequency between 23 to 54 kHz.
It was used as a training tool. The idea is that you could use the dog whistle to signal to dogs without disturbing anyone around you with a traditional whistle.