You are correct in saying that oxygen in our atmosphere may get exhausted. But as long as there are trees, oxygen content in the air will be replenished. So, to prevent oxygen from getting exhausted we must plant more number of trees in our locality.
Hope this answers your query.
Keep posting and have a nice day!