Yes. People commonly say this when they are about to do something important such as taking an important exam, going for a job interview or putting on a performance. They may say to someone, "Wish me luck!" or "Wish me good luck!" and the person will respond, "Good luck!"