Asking for feedback is okay if you're in the right mindset. Understand that unless you completely failed something, it's probably them, not you, and any feedback you get should be seen as likely rationalizing a decision they made for who knows what reasons. So as long as you don't take the feedback too hard or too personally, you might get some ideas for how to improve your chances with the next employer.