Hay Janet,
We put a stair gate on our DS's room as I didn't want him running into everyones room in the middle of the night. The first week, he was curious, in and out of bed a lot but now he next to never even opens his door which we just pull over (we don't actually close it properly IYKWIM) as he knows he can't get out.
It's been great for us, HTH.
Stace x