Hi in spanish the answer depends of the verb, it is more common that way . The literal translation from english is less common but it is used too.
¿Me entiendes?
Yes, I do -Sí, te entiendo- less common -Sí, lo hago-
El no fué a la tienda
Yes I did- Sí, si fuí- less common -Sí, lo hice-
¿Vas a ir al mercado?
Yes I will-Si, si iré- less common-Sí , lo haré-