Both are fine. Other tense and modal combinations are possible with different implications. I think to agree can be both stative and dynamic, and this can lead to different interpretations.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.