All Apple portable computers are designed to operate in clamshell mode without problems. If that weren't true, Apple wouldn't provide instructions on how to use clamshell mode.
While they can run in clamshell, you can't debate that airflow is restricted and the CPU will run hotter. And just because Apple says it can work like that, doesn't mean you should be running your CPU at 100% with the lid shut all the time.