Can I file for personal bankruptcy if I have pending lawsuits?

I need to file for personal bankruptcy. I’m going to be starting a medical malpractice lawsuit for a parent who is deceased and also a civil lawsuit for personal injury for myself. Can you tell me….am I allowed to file personal bankruptcy if I have pending lawsuits….where I am the beneficiary of each lawsuit…if they are won?