Could you help me with the following?

You remember Satchel Paige, the baseball player who once said, "Don't look back; something might be gaining on you."

I'm not sure of what "gaining on" means there. Is it saying "don't look back; someone or something might catch up with you, or someone might get ahead of you"?

Thank you.