How old was your baby when they started sleeping in crib?

My girl is 4 months old and the bassinet is getting too little for her. I’m moving the crib into our bedroom. I’m just scared she’ll roll over of a night in the crib. I’m still swaddling her.