You definitely can. A function return value is just any other value and you can pattern match on it directly, or with the `case` or `with` constructs.
def foo(<I want to pattern match the value returned by GreatModule.constant_substitute()>), do: "bar" def foo(value), do: value