Can I change auto-lock time on my iPhone based on which app I'm using ?

Generally I prefer the 1-minute option for security, but it gets annoying when I use my shopping-list application and it auto-locks if I cannot get to the next item in the grocery store fast enough. So I'd like 5 minutes if that app is in the foreground, otherwise 1 minute.
To answer the headline question...no.

Original thread: https://forums.imore.com/threads/can-i-change-auto-lock-time-on-my-iphone-based-on-which-app-im-using.316176/