Some doctors treating accident victims are taking a page from plaintiffs’ lawyers, agreeing to get paid only after a lawsuit wraps up.

The arrangements can mean higher fees for doctors than they would get from insurance companies—although critics say it can expose victims to large bills if their lawsuits don’t succeed.

So-called lien doctors...