Yes, affiliate marketing is absolutely legal. In fact, it is one of the most effective online marketing methods available to businesses today. That makes up a win-win situation for both advertisers and publishers.