Can I still conceive if....

Is it still possible to get pregnant if you don’t have a healthy diet? I’m not over weight but I’m just curious to see if this can prevent pregnancy