Update variable value via add_filter

I have this apply filter in my plugin.

$  pre_html = apply_filters( 'events_views_html', null, $  view_slug, $  query, $  context ); 

I want to change $ view_slug value dynamically because I do not want to modify plugin files. Can I do this using add_filter in my child theme ?

It is a basic question but I have limited knowledge of WordPress filters and hooks. Some guidelines regarding this will be appreciated.