Yes. Affiliate marketing is a marketing method but also an established business model itself, where you earn revenue by promoting someone else’s product. It can be done offline, but a large majority of affiliate marketing takes place online, so it is digital marketing.