Yes! The size does affect cooling. A tiny case will have less space, which will hamper airflow. A very big case will have too much space, which means you'll have to use powerful casing fans to ensure sufficient airflow.