You left out the MARRIED part of the equation.
And, YES!
Also, in the case of a US citizen dad, and no marriage, then the dad has to file paperwork stating he’s the dad; acknowledge paternity.