The error margin is where the alternative hypothesis is accepted.

No, the error margin is the level of confidence that the results of a statistical test are accurate. The alternative hypothesis is accepted when the test results are statistically significant, meaning that the results are unlikely to have occurred by chance.