Yes, of course it does.
Wages are not paid on anything remotely fair. It's not based on "what value does this employee bring to the company, and how much of that value should accrue to them".
The cold hard logic is:
Cost of raise = the additional salary.
Cost of not giving a raise = the additional chance that the employee will quit, multiplied by the costs of them quitting (mostly lost productivity).
So to get a raise, an employee needs to make the employer believe there is a significant chance of the employee quitting, and that a raise will significantly decrease this chance.
One such way to achieve this, is to apply for a better paid job, receive the job offer, and tell your employer. This shows that you are serious about quitting (going to a lot of effort), and have low risk better options.
Another way to achieve this, is to let your employer know that your current salary is insufficient. Providing a reason, such as an upcoming baby, shows that you are more serious than someone who just says they want more money. It would work just as well if the reason were medical bills, flood damage to a house that insurance won't cover, wanting to buy a house or pretty much any other expense.
Note of course that no HR team would ever admit they take this into consideration.