Do deer whistles actually work?

I have seen the lights of critters eyes including deer to avoid a collision. I have no experience with moose, except while setting up camp in Yellowstone. A large brown body coming right towards our campsite as we were setting up. Ran to the car locked ourselves in (in retrospect a lot of good that would do) thinking it must be a bear, as a moose ended up walking through our camp site.