An Intel one, sure. On an M1, first of all, if you're managing to run it at all hot for any length of time, you're doing something extremely impressive, and second of all, I've yet to see my M1 (or hear of anyone's) getting anywhere close to the kind of heat that was considered normal on my last 2 Intel MBPs. I can rest it on my bare legs even when doing things that push the GPU fairly hard; if I'd tried doing that with my last one, I was at the very least asking for severe discomfort.
I had no problem on either of my Intel MBP operating them with the lid closed for the two years of the pandemic. I did buy one of those stands that props them up sideways to save on desk space, which also probably helps with cooling as well.