I'm planning to buy a HyperX Cloud II for my Xbox One. But I have the question whether I can then use the microphone.
If it is connected via jack then yes.
Otherwise, I recommend you take a look at the XCloud headsets especially for the One.
https://www.hyperxgaming.com/de/headsets/cloud-headsets-xbox-official-license
But you could have googled quickly yourself.