Yes, of course. Long-term issues aren't any different than others; they only need longer (more generations) to manifest.
One class (meta-)examples are all mechanism actually promoting mutation, or other methods of genetic variation: Horizontal gene transfer is interesting in this regard. It's the ability to incorporate snippets of DNA the organism comes across.
These mechanisms are an adaptation to the "known unknowns": what if a new pathogen appears, or the environment (temperature, radiation, salinity etc) suddenly changes? To achieve some flexibility, these mechanisms make trade-offs, usually sacrificing short-term reproductive success.