Nighttime potty training?

Do you have to convert to a toddler bed to potty train for night? Or can they stay in a crib?