No, it is neither harmful nor illegal, as you will simply be using the affiliate link provided to you rather than a direct link to any site. However, in a certain jurisdictions, you are supposed to disclose that you may be compensated for endorsing the product. Read our guide on Affiliate disclosure to learn more about it.