529 Plan

So this is a real life questions. My friend has a 4 year old child and both him and his wife work in NJ with no tax deduction for 529 plan contribution. My friend’s dad has NY sourced income (NY does have tax deduction). Can my friend’s dad open up and 529 plan for his grandchild to get a deduction on his NY Nonresident Tax return?