@k In my experience, it can, but it depends a lot on what kind of software and where the donation link is.
Libraries and other internals, almost never get donations, even when people use them in projects. "End-user software" gets donations way more often.
Likewise, just putting a barely-discoverable donation link on the site somewhere doesn't do much. Actively *prompting* people for donations, however, does.
The best results I've seen (also in other projects) are donation prompts that only appear after someone has been using something for a bit, presumably because by that point they've decided that it's useful to them.
Likewise, honestly explaining what the donations are for, and what sort of donations are expected (in amount, frequency, etc.) seems to help encourage people to donate, as do 'progress bars' for donation targets. Helping people understand where their money goes, basically