Perhaps, but it reduces the size of the secondary market so consumers have less choice and may opt for a new one instead. This is the real advantage to Apple.
There's no meaningful competition between new Apple products and ten-year-old Apple products.
But if you want to talk about much newer machines, Apple doesn't offer good trade-in prices, so it still doesn't look like they are trying to beat out the secondary market.
I think it's pretty clear the trade-in offers are a convenience they can provide more than anything.