Blocking an app that is not available on appStore

Does screen time api blocks an app if it is not available on the app store anymore but it is still installed on a child device?

Blocking an app that is not available on appStore
 
 
Q