Question about Functions, Booleans

If I have a return value and it draw an ellipse will this code not also draw an ellipse? I know its not great to get my function to do two things at once, I am just curious about checking if True.

if (checkIfInsideAsteroid()) //do something;

Will this ONLY check if True/False?