Yes, you can use ice water to help keep your dog cool on a hot day. Be sure not to give them too much at once, though, and never try to rush the dog's body to cool by bathing it in ice water.
Instead, provide small amounts of cool water to drink throughout the day to help them stay hydrated and comfortable.