Crib for baby or no?

What age do babies stop or should stop sleeping in a crib? I have a pack and play that I have been using since my baby girl was born but she's getting bigger and heavier at 5 months of age and I'm wondering if I need to invest in a crib now and how long that will last?