The standard margin is 1 inch but it varies per publisher. Look up the publisher in question. Their website will more than likely specify their submission requirements including the formatting of manuscripts. And yes, it matters. Some publishing houses will not look at your story if you aren't willing to so much as follow their basic submission rules. It bodes of a poor future work relationship. So look up their requirements on their website and follow them just to appease them.