Yes and no. Affiliate marketing can generate passive income, but the passive side of the income usually only follows putting in a few years of hard work to generate the brand and audience you'll need to begin generating those passive sales. I have multiple sites earning passive income, but each of those sites took a lot of front end work to build up to that point. And not every site gets to the point of passive income. Some sites require continual maintenance though the revenue they generate can also allow you to pay for that maintenance to be done vs. you needing to do it yourself.
Amazon used to have a variable fee structure where you would earn more money if you referred more sales to Amazon. They would start at 4% and you could earn up to 8.5% of a sale if you referred enough items. Amazon did away with their variable fee structure in early 2017 and replaced that system with a fixed percentage payout based on the category of products. Some niches pay a lot less than others and it’s important to be aware of the payout before you pick a niche:
Additionally, you must either include the following disclaimer adjacent to the pricing or availability information or provide it via a hyperlink, pop-up box, scripted pop-up, or other similar method: "Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product." In the above examples, "Details" and "More info" would provide a method for the end user to read the disclaimer.