Yes. Backpackers often use tents as shelter from wind and rain while sleeping at night but may also sleep under the stars without any shelter at all if conditions allow for it.