Without spark master can we run spark cluster?

HI,
Can we run spark cluster without using of spark master server? with the integration of yarn.
I want to know that when we are using the yarn in spark cluster to submit a job then also we need the Spark master?

Can you be a little clear in your question?

as long as you have spark gateway on you cluster, spark master is not required