WILL GIVE BRAINLIEST Translate the following question into Spanish: “Where was the cat?”

I came up with ¿Dónde estaba el gato? Is the estaba part correct or is it wrong?