Spark Configuration

Do i need to install spark on each node if i want to run the spark application on YARN cluster ?