It has been observed and tested, in such ways as you said it happens. One example were moths that changed colors to deal with smoke and ash in the environment
English
-
Those moths are still moths, and as exhibited in the OP, the insects ended up developing one new function in all of their generations:[spoiler]Nothing.[/spoiler]