Can extra yearly mortgage payment cut loan term in half?

Scenario analyzed on 30-year product