Yeah, you still have to pay them.
Also keep in mind that after a couple weeks of not playing a single minute, their game shape won't be too great either. So if you see high salary injured players being sold for way less than you think they should be selling for...
Then again, if you're looking mostly long-term, eating a few weeks of salary might be worth it depending on the player.