Yes & you certainly can’t change a toxic boss! You can confront them privately about how their behavior is affecting you but they are unlikely to change. They are in the position of power so they can just fire you to get rid of you because they don’t like hearing the truth. Complaining to HR isn’t always effective either because often they are on the side of the more senior person in the company.