Intended length of stay H1b ds 160

There is an intended length of stay in the ds 160 for h1b. Does that have to match the approved petition being submitted? If someone has only 1-2 months pending, can it have an adverse effect on the visa decision?