OAuth2 in a custom App

Can I have an OAuth2 authorization flow where the redirect_uri points to a custom app URL?