Yes, it is work. However, it could turn in to mostly passive recurring income after a while of initial work. Check out the answer to the “is affiliate marketing passive income” question.
This question was answered by Aleksander Blomquist. He started out with affiliate marketing back in 2008. As of 2020, he is a full-time affiliate marketing guy with two businesses focusing on creating websites from scratch and monetizing them with affiliate programs.