Yes. A valid Creative Cloud license can be installed twice, and one can be Mac and the other can be Windows.
The poster didn't say they had a Creative Cloud subscription. This would not be possible in InDesign CS6 or earlier, just to be clear.
If you ask a question, you have to tell always which version you want to use. The answer depends on the version.
In you case it depends additionally on the licence program you are using. EDU is different then others.