Toddler bed

I'm a FTM and thinking about switching to a toddler bed but what do you do when they wake up or won't go to bed? Just turn the lights off and close the door?