Ok I misunderstood, as I am dodgy engineer who doesn't read things ,I though you meant to answer a call you need to u lock the phone , but yes apps don't unlock phones ,
I assume a rooted phone with special app would do it , same way trusted devices settings unlock the phone you might get an app that is trusted and phone unlocks when it rings it , not seen the latter tho , or tried