For NY state tax, married filing separate, is it mandatory to have spouse SSN?

Want to confirm like in case of federal tax it’s not mandatory to have spouse SSN when MFS, is it the same for New York State tax?