Founded a city on the first turn, and then still during the first turn, went to a lost library. The +20 research, though, was lost. I presume it's because I had not yet set a research goal at that point, but I didn't get any message to that effect either.