Pediatrician

I know this may be a little off but I’m wondering when do mamas normally choose a pediatrician for their baby? I’m a first time mom so I’m clueless on everything, went to the hospital recently to get checked and the nurse asked did I have a pediatrician yet. Do you normally find one before birth? After? Schedule an appointment when it’s time for baby to go to the doc?