Most challengers choose to hike these as day hikes, but it is not required.
You are welcome to backpack and camp overnight (when allowed by the governing agency) and hike the peaks over multiple days, or as a part of a longer trip.
Not all mountains allow overnight camping, and some have additional permit requirements and/or quota restrictions.