But it's not always preferred, in my opinion, it depends on the airport and how is the security there.
Someday in Frankfort, I and my brother tried to attend together to the border control officer. but he directly asked to come one by one.
So, I think this situation applies to NY airport since the security level there high.
Not in Sweden, they never ask for that.