It is possible, this might help if you are familiar with this sort of thing.
https://moodle.hft-stuttgart.de/question/type/stack/doc/doc.php/Installation/Mathjax.md
https://moodle.hft-stuttgart.de/question/type/stack/doc/doc.php/Installation/Mathjax.md