Yes it does matter for optical isomers. Optical isomers, also known as enatiomers, are non-super imposable mirror images of each other, there is no way you can overlay them and have them occupy the same space. In this situation, for an enatiomer, if you look at the stereochemistry at a chiral carbon, (whether groups are dashed or wedged), switching two of the groups will produce the other enantiomer.
For example, consider 2-chlorobutane. Due to the fact that carbon 2 of the butane chain has 4 unidentical substituents, it is a chiral carbon. If the chlorine bonded to this carbon was coming out of the page (wedge) you would have the R enantiomer. If the chlorine was dashed (the opposite way round, going in to the page) you would have the S enantiomer. Hope this clears things up.