Quick question

Daisy

So i’m a first time mom and my fiancé and I are setting up our nursery.. We currently have a twin size bed in the room from bed for guests and I was wondering If i added railings to it would it be safe as a crib?