The confidence interval is type of interval estimate that is computed from the statistics of the observed data, that might contain the true value of the unknown population parameter.
The margin error tells you how many percentage points your results will differ from real population value.