Would this be the correct way to add a timer switch to an existing fan with thermostat?
Yes, that is precisely correct. Though I prefer red tape, but that's a preference, not a requirement to go buy a roll. Nicer (IMHO) because you can easily mark switched hots whether they be black or white.