Can I open door or windows when dehumidifying?

Can I open door or windows when dehumidifying?

Its better not. Because if the door or windows open, the wet air will go inside room and seriously affect the dehumidifying efficiency.