Are mountain bikes good for snow?

Hello everyone,
To train the kidneys, I want to buy myself a mountain bike. However, it usually snows where I live. If I buy a mountain bike, can it be used when there is snow or not? Hope everyone can give me the answer.
Thanks everyone.