Nocturnal newborn?

Are newborns typically sleeping during the day and active during night? When does that usually ends?