There is a large amount of oxygen in the atmospheric oxygen. Plants can never use all of it in one night. We will have lots of oxygen to breathe at night. However it is not advisable to sleep in a closed room containing a plant without airflow as in this case they can use up all the oxygen in the room.