Yes. That's one of the benefits.
Some people use electric heating even without crypto so using GPUs to mine crypto to get the same effect is a no brainer.
Problem is that during the summer you have to get rid of the excess heat, so you need air conditioning or perhaps open air cooling.
Not gonna lie, I've used my GPU to heat up my small room before.