How to blend colors gradually?

If I had these two variables:

var blue = Color.blue;
var green = Color.green;

would I be able to make it so then the two colors gradually blend with each other over time and alter the color of a certain game object? If it worked correctly, then the color would start off as blue and then become green over time.

Color.Lerp(blue, green, t)

Here are the docs.