Silly question?

Can babys sleep in their swaddles throughout the night or do I need to buy the little sleeper bags where their arms are allowed free?