What were you wearing yesterday? vs. What did you wear yesterday?

Hi

What were you wearing yesterday?

Can I say “What did you wear yesterday” as well?

Many thanks in advance. Bye

Yes, that is acceptable.