Do LLMs Function Similarly to Search Engines?