This absolutely can happen. A few years ago I discovered [0] Atlanta Airport's public WiFi was injecting ads into non-https pages. A malicious actor changing download links is not a far fetched possibility.
At least it can't be an HTTPS link to the same domain. But even if a user notices this, it's not worth a lot in the age of CDNs on weirdly abbreviated separate domains...