Not entirely. A compilation error can contain a syntax error,
but what a syntax error actually is, is an error in how the coding
is spelled. For example, say you are trying to program a router.
You type in the code, of which you know it's the correct code, but
receive an error. You proofread the code and notice that one or
more of the words are not spelled correctly. This would be a syntax
error. They can also take the form of misplacing the words in the
code's syntax.