Crib or pack n play

Crystal

So I am in a dilemma our house isn’t that big and a crib will take up a lot of room and money is a bit tight so I was wondering if it’s ok for a baby to sleep in a pack n play if I buy the extra mattress that fits in it that way when not in use I can put it away or bring it with us if we need it I have always had a crib for my boys but with the things the way they are I am trying to find a cheaper but yet still safe way to go it’s been 6 years since I have had a baby so a bit out of the loop on things and it’s my first girl all advice is welcome thank you gals in advance