Sometimes it is, but online marketing covers multiple other areas, from social media to content marketing. Affiliate marketing is just one area of online marketing.