Oh yes, but in this case I actually want the sub function, the idea is to write a sub function that does that return and allows me to call it in a bunch of other functions.
To my knowledge, you can't do exactly what you're asking (cause one function to return from another's body). But your code above is effectively doing that when the inner function returns a value that causes an early return of the outer function. I see and write code similar to this all the time.
Thanks for producing the reprex, but I wonder if sharing an example that more closely resembles the code you're working on my help clarify things?