You can use essere d'accordo to say that you agree with someone. Because this expression contains essere, be sure you are using the right verb form.
On the other hand, andare d'accordo means to get along with someone!
Do you want to talk about politics in Italian? Here are some words that can come in handy.