Absolutely.
An extreme example is that parents who physically punish their child for anything and everything wrong, and sometimes for no reason at all the child will be rebellious and ironically lack a moral center (since they only follow rules out of fear). If the parents instead talk the the child on exactly what the child did wrong and why it's so bad, the child will have a very strong moral center and follow rules even when no ones around to catch him.