It's ok if you can physically remove the battery. I'm pretty sure to have read multiple times that laptops thermals and battery engineering are optimized for daily use in open areas, not to safely run workloads 24/7 in a closet.