Override an existing controller

hello …
I am trying to create a new theme with new features so I need to override some function in a controller
is there any way to do this?
I know that I can create a new plugin but I need to change the home page not create a new one.