It can help, especially when paired with real practice
Mental rehearsal can activate some of the same planning and motor networks used in a task, which is why performers use it to prepare. It is not a full substitute for physical practice, but it can improve readiness when combined with real reps.