It’s not recommended. Cacti need dry conditions and good airflow, so an open container is ideal to prevent moisture buildup and rot.