The answer depends on the type of playpen you’re looking to invest in. If it’s the regular playpen with a fence, it may not be the safest place to put your little one to sleep. But if we’re talking about the modern playpens designed with a comfortable fabric and mesh, you can surely use them as a substitute for a baby bed.
Make sure you set up the playpen well before laying your little one inside.