Birth control pill

Can you get pregnant right away after getting off of birth control or do you have to wait awhile?