Yes, you can do that. But there is no guarantee that they would answer because that way a "Hey" conveys nothing beyond a casual greeting. Say something specific if you have to get an answer.