Does order matter when filing two state returns?

If filing in NY and NM, does it matter which return is filed first with federal ?