Can baby sleep in onesie?

Kaitlin
I'm talking the short sleeve thin ones. She wore jammies last night and this morning was sweaty. I don't want her to get too cold but I don't want her to get too warm either. (She's 3 months btw) should I just put her in warm jammies or leave her in a onesie and put pants on too? Sorry if this is stupid.