Can I receive disability benefits while my appeal or lawsuit is pending?

Can I receive disability benefits while my appeal or lawsuit is pending?