Yes, without any issues.
During installation of your new Mac you will have the option to restore backups from Time Machine.

Cheers ... McBie

A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
The problem is not the problem. The problem is your attitude towards the problem. You understand ?