Any suggestion and advice???

I'm debating if i'm going to buy a playpen or a crib. I like playpen specially the 4moms cause it's very convenient compare to a crib. I'm just looking ways to save, so i'll just going to pick one. But my question is. Can a baby sleep in a playpen overnight? Thank you!