Yes, but writing compilers is a specialty.
I
disagree... for comp sci majors. If you don't understand lexical and
syntax analysis, code generation and optimization, and the necessary data
structures (this is the most important part), for your whole career in
computer science you are walking on sand.
Jay West