Does the Arduino clock frequency affect analogRead()?

float getTemp() {
  return temp;
}
 
void loop()
{
  getTemp();

The getTemp() function returns a value that you just throw away. Why?