5e Bladesinger Extra Attack feature question, pertaining to cantrip usage.

As is written in the rules; "...Moreover, you can cast one of your cantrips in place of one of those attacks."

So RAW, it says I can substitute one of the extra attacks with a cantrip, ANY cantrip right? It doesn't specify that said cantrip NEEDS to be an attack in and of itself.

Example: Take the Attack Action, attack once with weapon, then cast Blade Ward, giving up damage for survivability. Or attack and cast Gust to make space to retreat without triggering attacks of opportunity.

Right?