No.
A great Scrum Master, someone who coaches, teaches people about Scrum and acts as a leader who serves can do all of those things without specific knowledge of the domain the developers are working in.
It is certainly more important for a Scrum Master to be much more skilled in Agile and Scrum then in the technology being used to build a solution.
A team building a spacecraft to Mars likely needs a Scrum Master with strong Agile skills more than they need a Scrum Master with strong
rocket building skills.
However, I do think a Scrum Master can benefit from knowledge of the technologies being used by the development team. It helps the Scrum Master empathize and even understand the language the devs speak.
So no, it's not required. Might it be beneficial? I can definitely see instances where some technical know-how could benefit the team overall, and really, helping your teams build products is what Scrum is all about!