You sure can. Apple makes it so easy to move from machine to machine, upgrade OS or change drives. I haven't reinstalled anything in the six years I've been with Apple.
As Hellhammer said, when you boot the new Mac, it will ask if you want to copy your data from a Time Machine backup. Do that.