It will affect the underwriting decision, yes. But it will not prevent you from being approved.
Also" If anyone tells you that it has to be paid to close the loan, find another loan officer. Collections almost never are asked to be paid
Retired Lender