Yes, you do. Different laws apply in different countries, but if your earnings from your affiliate business generate enough money to take your total earnings into the taxable income bracket, then you will need to pay. So, if you have a day job and are doing affiliate marketing as a side hustle, your total earnings will be taken into consideration for tax purposes.