Is it possible to add an argument to a custom function added to a filter hook?

No, filters get arguments based on the call to the filter. Basically, filters get their inputs from the apply_filters function call.

If you want to pass in data via another means, use a global variable or wrap the code and the data you want to use in an instance of a class.