Affiliate marketing is perfectly legal. It is also not harmful; in case you're wondering. You may look at the earning potential and wonder whether you're contravening any laws, but that's not the case here.