When getting a call back for a job, do you ask what you did wrong?

So I'm waiting on a call back to tell me if I got the job or not.
If I'm told I didn't get it, is it perfectly okay for me to ask why I didn't?
Or should I ask what I could have done better in the interview?
Thanks for any answers :)

Glow Resources

Let’s Glow

Glow is here for you on your path to pregnancy

Glow helps you navigate your fertility journey with smart tools, personalized insights, and guidance from medical experts who understand what matters most.

25+ million

Users

4.8 stars

200k+ app ratings

20+

Medical advisors