Yes, babies can wear just a bodysuit, especially in warmer weather or when indoors with a comfortable room temperature. Bodysuits provide a lightweight and breathable option for babies to stay cool and comfortable.
Newborns typically don't need to wear onesies under sleepers. But in colder weather or if the room is cooler than usual, you can consider layering a lightweight onesie under the sleeper for added warmth.