Hi, I am Dave, I will help you with this.
It is safe to close the lid on a laptop when it is running.
The default when you close the laptop lid is the laptop will go to sleep.
If you have an external monitor and you have set your laptop to 'do nothing' when you close the lid, then you can close the lid and the external monitor will still work.