Yep.
One very prominent example, which drives most of the sales at Binpress (the company I invested in, which I mention only to identify them rather than for promotion): if you GPL a library, that makes the entire app that includes that library not saleable on the App Store. This doesn't make the library useless, because you can still use it in internal applications or pre-release versions of your app, but "We need to ship to the App Store" is a fairly big bullet point for a lot of potential customers of e.g. a SDK which lets you edit PDF files on an iDevice in an arbitrary application. That particular feature occurs in a lot of enterprise apps, because the enterprise runs on PDFs. So if you say "Totally free for your geeks to use internally, and btw, $2500 if they want to put it on the App Store", you'll collect more in a single license sale than 99.99% of donationware apps make in a month.
This is called the dual licensing model. Mechanically, you control the copyright to the code, release it under GPL, and -- in parallel -- release it under a commercial license which restricts what people can do with it but which is "non-viral."