Yes, that's grammatical and possible.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Fine, but on its own, it does invite the reply “before what?”. For this reason, I prefer “What did you say earlier?”.