You can achieve desired result by making sure that you have de-selected the option for aligning all objects to pixel grid in the document setup.