Do you have to be ovulating to get pregnant?

Are there only certain days a month you can get pregnant or can you get pregnant anytime?