If you don't get your period right away after having a baby do you still ovulate?

I'm curious because some people say if they breastfeed it takes their period longer to start again after giving birth