Somewhat — but only in the head, not the hands.
You will come away more familiar with the rules and the strategy: which club suits which distance, when to lay up rather than go for the green, how a course plays in wind. That knowledge transfers.
The swing does not. No amount of controller work teaches you to strike a ball, and the motion you build on a sofa is not the motion you need on a course. For that you need a driving range or a putting green and real repetitions.